Viewing 15 posts - 7,246 through 7,260 (of 13,469 total)
i'll bet at least one row is an empty string;
an empty string can be converted to Integer, but not Numeric:
SELECT CONVERT(int,'')--works! value = 0
SELECT CONVERT(NUMERIC(8,0),'') --fails! Error converting data type...
June 30, 2011 at 10:59 am
ok since we are showing off all our cursor abilities, here's my contribution to the same issue:
mine is designed to search the db, and provide you with follow up SQL's...
June 30, 2011 at 10:31 am
it depends completely on how you are exporting the data; you never mentioned what you are using.
Are you using SSIS? bcp? your own application?
bcp requires a format file to describe...
June 30, 2011 at 10:21 am
third party tools exist that are specifically designed for this.
What's UP! and SQLPing are two that come to mind,and both are either free or have free versions.
otherwise, if you are...
June 30, 2011 at 9:07 am
no, if you have already installed the ODBC driver on your server, you don't need any SDK or anything else.
all you need to do is use the screenshots int hat...
June 30, 2011 at 9:03 am
the errors pretty clear.
you are trying to create a unique primary key on an existing data. but at least one combination of those two columns are not unique. the values...
June 30, 2011 at 8:39 am
the IBM website has a walk through on using the SSMS GUI to create a linked server;
does this help?
June 30, 2011 at 8:03 am
you can create a database that researves a ton of freespace for future growth; when you restore that backup, it requires all that reserved free space as well...so getting a...
June 30, 2011 at 7:21 am
yes. i think SQL Server Compact, but you can only use/access that database with a .NET or compact .NET on Windows Mobile;
if you are looking for something to sue...
June 30, 2011 at 7:04 am
either of these will do what you asked...they are functionally the same i think.
WHERE COLOR='RED' OR COLOR='GREEN'
WHERE COLOR IN('RED','GREEN')
now if you want where the product has BOTH, you have to...
June 30, 2011 at 6:53 am
also, using sys.columns is just an easy way to find a lot of items;
if you doi this:
--SQL 2005= 419
--SQL 2008= 483
select count(*) from model.sys.columns
that shows me that on my...
June 30, 2011 at 6:43 am
one of Jeffs other fine examples is creating a CTE Tally table that doesn't touch any existing tables, but creates it all on the fly;
there's not really much of a...
June 30, 2011 at 6:31 am
Nakul Vachhrajani (6/30/2011)
steveb. (6/30/2011)
Nakul Vachhrajani (6/30/2011)
June 30, 2011 at 6:24 am
i just noticed that and fixed it; copy my code example again...i edited it to be syntactically correct, but with that code block at the end slightly changed to have...
June 29, 2011 at 3:20 pm
ok correct me if i'm wrong, but the business logic is basically saying :
if this date is not null [do stuff]
ELSE
if this other date is not null [do stuff]
etc for...
June 29, 2011 at 2:58 pm
Viewing 15 posts - 7,246 through 7,260 (of 13,469 total)