Viewing 15 posts - 11,386 through 11,400 (of 14,953 total)
Yeah, interviewers ask such questions. It's a good lead in to test simple basics before you get into "what would you do if..." type stuff.
There's no real point in...
January 22, 2009 at 2:35 pm
LeeBear35 (1/22/2009)
GSquared (1/22/2009)
Joe Celko (1/22/2009)
January 22, 2009 at 2:26 pm
I don't see a temp table in that query. They should start with # on the name. The table with "Temp" in the table name is defined as...
January 22, 2009 at 2:23 pm
You'll need to use IsNull() and set the second value to 0 for the columns that can come back null. Then, for the date, check out "Cast and Convert"...
January 22, 2009 at 2:15 pm
Joe Celko (1/22/2009)
January 22, 2009 at 2:12 pm
You could control that through a proc that creates both at the same time. Might be a bit of a pain to put together, but it could certainly check...
January 22, 2009 at 2:09 pm
One thing at a time? Is this guy using a computer built in the 1950s?????
January 22, 2009 at 2:06 pm
Luke L (1/22/2009)
January 22, 2009 at 2:04 pm
I had access to a copy of the zip-codes.com database till a few weeks ago, and then changed jobs, so I can't check it for you now. I know...
January 22, 2009 at 1:32 pm
There are a number of ways to get that. The best one is build a calendar table and use that.
Beyond that, assuming you're using SQL 2005, here's one way:
;with...
January 22, 2009 at 1:29 pm
I actually had something a while back that worked better procedurally than set-based, similar to the PIN code thing here.
Six character alpha-numerics, each one needs to be unique, certain limitations...
January 22, 2009 at 1:08 pm
Check the compatibility of the databases you are running that in, on both instances. One of them is probably set on 90 and the other on 80. That's...
January 22, 2009 at 12:32 pm
That's from encryption in the SSIS package.
The simple solution is, when you save the SSIS package, save it to the SQL Server, using the "Save a copy of ..." option...
January 22, 2009 at 12:31 pm
Jeff Moden (1/22/2009)
GSquared (1/22/2009)
January 22, 2009 at 12:28 pm
Viewing 15 posts - 11,386 through 11,400 (of 14,953 total)