Software :: Out Of Range Error When Connecting QT With MSSQL

Jan 29, 2010

I get this error when running my program under linux; under windows it works as expected:

Code:
$ ./mssql_test
("QSQLITE", "QMYSQL3", "QMYSQL", "QODBC3", "QODBC")
qGetStringData: Error while fetching data ("[FreeTDS][SQL Server]Program type out of range")
QVariant(int, 1) QVariant(QString, "")

I can retrieve int's just fine, but not nvarchar's. I'm using unixODBC 2.2.12 and FreeTDS 0.82. The funny thing is, that I can use isql and tsql with no problem. The mssql_test program:

Code:
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QDateTime>
#include <QDebug>
#include <QVariant>
#include <QStringList>
#include <QSqlRecord> .....

The same error and output continue for the next records. These have cut out. I've been looking for a solution of a couple of days now, with no luck.

View 1 Replies


ADVERTISEMENT

OpenSUSE :: Connecting To MSSQL Using PHP 5.3.0?

Apr 20, 2010

I am running openSUSE 11.2 and would like to connect to MsSQL using PHP5.3.0 (I do connect to MySQL 5.1.45). Lots of info is available on the Google but nothing on SUSE. I installed "freeTDS" and "PHP5-PDO" objects but am not sure which way to go. Is ODBC another option? speed/functions?

View 9 Replies View Related

Hardware :: Connecting A Laser Range Finder To Ubuntu?

May 4, 2010

I am trying to Connect a Hokuyo URG Laser Range Finder to a Jaunty Ubuntu computer through a serial to USB converter. When I plug it into the computer and type 'lsusb' it does not recognize the device.

Before I plug it in:

~~~~~ lsusb
Bus 001 Device 021: ID 0781:5406 SanDisk Corp. Cruzer Micro 1/4GB Flash Drive
Bus 001 Device 004: ID 0bda:0158 Realtek Semiconductor Corp. Mass Stroage Device
Bus 001 Device 003: ID 5986:0203 Acer, Inc

[code]....

View 3 Replies View Related

Ubuntu Networking :: Wirelessly Connecting Desktop With A Linksys Wireless Range Expander?

Sep 30, 2010

After spending several months coming up with ideas (and ultimately failing), I have found the easiest and simplest way to connect your Ubuntu desktop (or laptop w/o a wireless adapter/card) to the Internet using only a Linksys Wireless Range Expander and an Ethernet cord.

YOU WILL NEED:
Linksys Wireless Range Expander (WRE54G)
Ethernet cable

Linksys wireless router (that is providing your home/office with wireless Internet) The WRE54G can be purchased online through various websites, including eBay. They run anywhere between $10 and $40, but it's going to be cheaper than a USB Wireless Adapter (and no software needs to be installed, making it universal for most Linux distros).

[Code]...

View 1 Replies View Related

Networking :: What Are Short Range Link And Long Range Links In Routing

Jun 23, 2009

get me understand the short range and the long range links from routing (and routing protocols') point of view.

View 6 Replies View Related

Software :: Gnuplot - Combining A Linear Range And Log-scale Range In The Same X-axis?

Apr 24, 2011

I want to plot a set of data in only one plot.The problem is that some points of the data should be better plotted in a linear scale (lets say 0 to 100,000) but there are other data points that, exceding the value 100,000, would be better plotted in a logarithmic scale, as they goes in the range 100,000 to 500,000,000. Let's say the data is:

Code:

X Y
0 100
10000 80
20000 75

[code]....

Is there a way to plot all these points in the same plot in only one X-axis showing two different ranges in that axis: linear: 0-100,000 logarithmic: 100,000 - 1,000,000,000?The axis would be read, for example, as:

Code:
|-----|-----|-----|-----|-----|-----|-----|-----|-----|
0 20k 40k 60k 80k 100k 1M 10M 100M 1G

(The abbreviations k-M-G are not the important point. Just shown for clarity)

View 2 Replies View Related

General :: Moniter Out Of Range Error / Fix This?

Jul 30, 2010

I just installed Debian lenny 5.0.5 and when i start it up the monitor just displays a 'out of range' error. im using a Radeon HD 5570 graphics card and a lG W2353V-PF monitor.

what do i have to do to fix this problem?

View 2 Replies View Related

Hardware :: Out Of Range Error On Monitor

Oct 4, 2010

I am a Windows Server guy trying to stay afloat on this Linux installation I am doing so please bear with me. I have installed RHEL 5 and installed the updated NVIDIA 256.53 certified driver. Upon rebooting everything was great. I got to the X server login and entered my user name and password. The very next thing I see is "Out of Range" error on my monitor. I know that I needed to verify that my xorg.conf file had the proper refresh rates specified in it for my monitor, which I have done.

View 3 Replies View Related

Programming :: Bash Script To Ping A Range Or Own IP-range?

Apr 11, 2011

I want to build a bash script, which can ping a range IP adresses which will be filled in by the admin. If there is no IP-adress filled in, then the script must ping the subnet where the system is logged on. So if my ip is 192.168.1.6, then the script must ping from 192.168.1.1 till 192.168.1.255 Or else, if there is given a beginning and ending ip it must ping that!

The first part of the bash script is to ping a given range (see below). But there is one problem, how can I tell the script to ping from $begin till $end, [..] is of course wrong! But what must be filled in there???

echo "Enter beginning IP-adres:"
read begin
echo "Enter ending IP-adres:"
read end
ping -c 1 $begin [..] $end

The second part is to find my own ip and ping the whole range.. How to do that? I only can find my own IP, but I cant ping the whole range,, how to do that?

#!/bin/bash
ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' |
cut -d: -f2 | awk '{ print $1 }'

View 11 Replies View Related

Ubuntu Servers :: 11.04 - Out Of Range Error On Monitor

May 7, 2011

I just installed Ubuntu server on one of my computers, but when I boot up the screen goes blank and the monitor gives me an 'Out of Range' error. I understand that this means that the resolution settings are too large for the monitor, but I don't understand how to change them, since there is no GUI installed. Details:

Monitor:

LCD
Recommended Resolution is 1280x1024

I have also tried it on another monitor with a recommended resolution of 1920x1080, This also gave me an OOR error. Ubuntu Server version 11.04

View 6 Replies View Related

Ubuntu :: Error Resolution Out Of Range On Computer Monitor

Oct 14, 2010

I have an hp vs17e monitor and I am running slax linux But I have absolutely no idea how to fix the error resolution out of range on my computer monitor.it then shuts off and I can turn it back on and it'll do the same thing.

View 1 Replies View Related

Red Hat :: Error: Operand Out Of Range (0x02000004 Is Not Between 0xfe000000 And 0x01ffffff)

Apr 1, 2010

I need to write a simple app that is huge in size (256 MB) but I can only got it up to 31 MB and got compiler error if I went greater than 32 MB. /tmp/cc7Ax35n.s:246: Error: operand out of range (0x02000004 is not between 0xfe000000 and 0x01ffffff).

I tried to change ulimit -l and -s options but it didn't help. Does anyone know why I got the compiler error and how to fix it? I am running RHEL 5.4.

[Code]...

View 1 Replies View Related

Programming :: Python Error - List Index Out Of Range (Web Scrapper)

Feb 18, 2011

Having a bit of an issue with Python while trying to write a script to download every rar file on a webpage. The script successfully downloads any link that doesn't contain any spaces, etc. But when it hits a url like: [URL] (Classical Spelling).rar. It fails...I'm sure this is something simple, but I'm so new to python I'm not sure what to do!

Code:
import urllib2
import os
os.system("curl [URL] -i rar|cut -d '"' -f 2 > temp.out ")
infile =open('temp.out', 'r')
for url in infile:
print url
#url = "[URL]"

#url = target
file_name = url.split('/')[-1]
u = urllib2.urlopen(url)
f = open(file_name, 'w')
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
print "Downloading: %s Bytes: %s" % (file_name, file_size)
file_size_dl = 0
block_sz = 8192

while True:
buffer = u.read(block_sz)
if not buffer:
break
file_size_dl += block_sz
f.write(buffer)
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
status = status + chr(8)*(len(status)+1)
print status,
f.close()

View 7 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

OpenSUSE :: MSSQL Support In PHP?

May 10, 2011

I have been using Suse since version 6, now I installed 11.4 64bit - great distro, but still have no PHP5-MSSQL support. Why is that? FC supports it, why not Suse?
Is there, maybe, a current 64bit PHP5-MSSQL RPM from custom repository?

Workaround: Is there another way (or even different ways?) to connect to MSSQL server from PHP and if yes

View 8 Replies View Related

CentOS 5 :: No Package Php-mssql Available

Mar 4, 2011

On my LAMP server (recently installed, latest CentOS) i want to use php-mssql to connect to a remote MSSQL server. Therefore i need php-mssql. If i run "yum install php-mssql" it tells me "No package php-mssql available.".

On a older installation (2 years old, but up2date) i had no problem installing php-mssql. I cant tell the difference. I've read this tread:

[URL]

Also "yum install --enablerepo=extras php-mssql" didnt helped me.

View 14 Replies View Related

Programming :: Getting Error 'couldn't Compile Regular Expression Pattern: Invalid Character Range'

Nov 19, 2008

I'm having a bit of trouble with a regular expression I'm trying to write and I'm not sure if it's something Tcl specific or my lack of regexp understanding.

[Code]...

I get a number of strings passed to a proc in the format 3|x where x is a number, either 0 or within the range 5-12. My understanding is that that regexp will match the literal '3' followed by a '|', the escapes the special meaning of |, and then 0 or, because of |, a number within the range 5-12. However I'm getting the error 'couldn't compile regular expression pattern: invalid character range'.

View 3 Replies View Related

Server :: Host A MSSQL DB And Use It On MySQL?

May 19, 2010

1. Am i able to host a MSSQL DB and use it on MySQL?

2. Where is the download link for MySQL server on Linuix (CentOS) as i can't seem to find it for linuix and is it possible to have a gui for MySQL on it if so which program would you recommend?

View 3 Replies View Related

Software :: Installing MSSQL For PHP On RHEL5

Mar 4, 2010

I am relatively new to the world of linux and PHP. I need to set up my PHP to work with the extension mssql as I have a mssql DB on another server that my websites connects to. I have followed this guide [URL] but get the following error when I run the command isql -v mstest satest satest which is under step 5.
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect

View 3 Replies View Related

CentOS 5 :: Connect Remotely To MSSQL With PHP

Jan 11, 2011

I just succesfully installed Centos 5.5 64bit with following package:

- httpd 2.2.3-43
- php-mysql 5.1.6-27
- mysql 5.0.77-4

and all these packages are running ok.

My question is how do i connect from Centos to another MSSQL server using PHP? I had read several article but cannot find the best way to achieve this because most of the instruction seems to be quite complicated. I found somewhere in this forum that all it need just this simple command: "yum --enablerepo=extras install php-mssql freetds". While others article said that i need to install "FreeTDS" and some ODBC driver. I'm a little bit curious since most of that article are using an older version of Centos and PHP.

View 10 Replies View Related

OpenSUSE :: FreeTDS And PHP With MSSQL Support Built In?

Aug 16, 2009

Can we get this built into the distribution? This would really set it apart from other distributions that don't have this included. And it would most likely make a lot of PHP developer lives a bit easier.

View 7 Replies View Related

Ubuntu Servers :: Import Mssql To Mysql?

May 14, 2010

It took a while but I got my home webserver setup and running with mysql. Now I want to import a 70MB MSSQL backup file from my hosting company. I noticed phpMyAdmin can import up to 2MB. Any suggestions on how to do this for a larger file. I do have access to the server running SSH so I'm not opposed to using the command line if I need to.

View 2 Replies View Related

General :: Import Data From MySQL To MSSQL

May 6, 2010

I want to import data from MySQL to MSSQL. I've been searching in the web, and I can't find a good and straight answer. How can I do it?

View 2 Replies View Related

CentOS 5 :: Add Port Of MSSQL(1433) To Httpd_can_network_connect_db?

Nov 27, 2009

How to add port of MSSQL(1433) to httpd_can_network_connect_db or add some changes in apache policy? I know about httpd_can_network_connect but this is not my way.

View 6 Replies View Related

Software :: Import The Data From MSSQL Of Windows To MYSQL?

Oct 10, 2010

I am migrating SugarCRM from windows server to a linux server. But the main problem is the database. How will I import the data from MSSQL of windows to MYSQL of Linux ?

View 5 Replies View Related

CentOS 5 :: PHP, MSSQL (FreeTDS) Working Ok From Shell, TSQL But Not From Apache?

Jan 12, 2010

I need CentOS to communicate with an MS SQL Server 2000.I have installed FreeTDS and PHP and the following work:TSQL (using and selecting from the SQL Server)PHP from Shell (running a script from the shell)

View 5 Replies View Related

Ubuntu Servers :: Converting MSSQL To MySQL Formatted Dump Files?

Dec 11, 2010

Does anyone have a simple to use bash script or some such that will convert MSSQL dump files to MySQL formatted dump files?

View 6 Replies View Related

Debian Multimedia :: Always Get A "Monitor Frequency Out Of Range" Error Whenever Boot?

Mar 6, 2010

I certainly do not consider myself a Debian power-user, but I do presently have 3 Lenny systems and 1 Squeeze system running fine in my home on "older" hardware. However, for the past week I have been trying to get yet another system running, and I have hit the wall. This is on a new home-built system with an AMD Athlon II X4 and an ASUS M4A785-M motherboard. The Lenny installation was done with a net install of the AMD64 variety.

I always get a "Monitor frequency out of range" error whenever I boot. I can do a CTRL ALT F1 to get to command line, but I have no success getting to GUI. I have read numerous posts of similar monitor frequency problems with various distros, and most point toward HorizSync, VertRefresh, etc settings in xorg.conf. I have played with a myriad of options there, but I still get the "frequency out of range" error after a reboot. I have swapped monitors to no avail (monitors that work on my other Debian 32-bit systems). I really don't think the problem can be the xorg.conf file, since I have tried the exact same file as on the other machines. (Also, those systems seem to be more than happy without custom HorizSync and VertRefresh options in their xorg.conf files.)

On this new computer, I am using the motherboard's integrated video output (theoretically a ATI Radeon HD5200).I don't know if special options are needed in xorg.conf for this???I am able to successfully boot to GUI with multiple differentCD Linux distros; however, no such luck with the Debian installation. I would prefer to stay with Debian if possible, but I cannot live by command line alone on this system.Please let me know if there is something else that I should try before punting and moving to another 64-bit distro.

View 8 Replies View Related

Networking :: Error Str2addr:Address 35 Outside Range Of Address Field Length 1?

May 12, 2011

I am working on implementing a protocol on NS2.34 .I really need help to solve this problem . Actually , I don't now whether the problem is generated by the tcl code or the c++ code when I run the simulation, I get this result :

Code:
num_nodes is set 64
INITIALIZE THE LIST xListHead
34
45
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
code....

View 1 Replies View Related

OpenSUSE Hardware :: Monitor Error - "Signal Out Of Range" / Gcard Failure

Feb 3, 2010

[For those of you who helped me before hand, sax2 wasn't good enough, so I went with the one-click, aaaaand]

Version: 11.2 "Emerald" with KDE
Card: Nvidia FX 5200

Problem: After installing one-click (5xxx legacy drivers), I ran the nvidia-config command and rebooted. Upon reboot, I get a splash screen and then nothing but a monitor error - "Signal out of Range" [Note: After googling this problem, I found a similar thread with an ATI, but since the difference between nvidia and ati is the same as perfect

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved