Viewing 15 posts - 4,021 through 4,035 (of 14,953 total)
Lamprey13 (6/10/2011)
June 10, 2011 at 11:02 am
Reverse the order of "select" and "insert".
INSERT INTO [dbo].CustomerABC
SELECT L.CURRENTABC
FROM [dbo].LIM_ABC_Table L
I recommend listing the column(s) to insert into instead of just leaving that part blank, but...
June 10, 2011 at 11:00 am
coronaride (6/10/2011)
June 10, 2011 at 10:56 am
Compatibility level won't affect that. But, if you want to check it, you can select that from sys.databases.
What did you do to check the index use?
Here's a valid query:
SELECT...
June 10, 2011 at 10:51 am
I don't see any reason for this to be dynamic at all.
My first thought was complex search querying, but it seems to be just two input parameters (start and end...
June 10, 2011 at 8:06 am
The easiest way is make the query into dynamic SQL, plug in the database name as part of a three-part name for the tables, and execute it that way.
June 10, 2011 at 8:01 am
That's certainly a very normal design for that kind of thing. I've seen variations of it many times.
It creates certain performance and management issues, but so does any other...
June 10, 2011 at 8:00 am
I see the cursor cycling through the database names, but the query doesn't do anything with that so far as I can tell. You aren't actually switching databases just...
June 10, 2011 at 7:55 am
Michael Valentine Jones (6/9/2011)
June 10, 2011 at 7:51 am
mtillman-921105 (6/9/2011)
GSquared (6/9/2011)
June 10, 2011 at 7:48 am
Add "default" as a second parameter:
Select * from fn_trace_gettable('C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\log_255.trc', default)
June 9, 2011 at 12:28 pm
Tell them about the problem. Also ask why they use global temp tables, since this is generally considered a poor design decision. They might have a solution, or...
June 9, 2011 at 12:26 pm
Are you talking about querying the XML data so that it reads like table (columns and rows)?
If so, then XQuery is what you need. The functions you'll most likely...
June 9, 2011 at 12:24 pm
There are lots of numbers like that. Zip codes, credit card numbers, driver's license numbers, SSNs, serial numbers for products, bar-code values, etc.
All of these are good candidates for...
June 9, 2011 at 12:21 pm
I think you may have copy-and-pasted the wrong string into your post.
June 9, 2011 at 12:18 pm
Viewing 15 posts - 4,021 through 4,035 (of 14,953 total)