Viewing 15 posts - 151 through 165 (of 14,952 total)
Are you using the Import Wizard in Management Studio? Or an SSIS package? Or something else?
January 16, 2013 at 8:36 am
Normal varchar can go up to 8000 characters if you define it that way. Varchar(max) can go up to 2 Gig (approximately 2 billion characters).
January 16, 2013 at 8:07 am
Personally, I use XQuery (nodes, et al) consistently. Haven't used OpenXML in years. Prefer XQuery for performance, ease-of-use, etc.
January 16, 2013 at 8:05 am
There are ways to put more robust error handling into scripts like that, but I'm not suggesting them because they'd take a lot of editing, and you don't have time/resources...
January 16, 2013 at 8:03 am
patrickmcginnis59 (1/15/2013)
If the interviewee is going to fool a completely competent and prepared interviewer, he's going to fool the SQL...
January 15, 2013 at 2:36 pm
The only real benefit, in my experience (about 12 years now), to table variables over temp tables, is that an explicit rollback command won't roll back data changes in a...
January 15, 2013 at 2:20 pm
Yeah, it's pretty safe to ignore the rabid weasle Joe in this instance. Nothing he wrote here actually has any value to the discussion. (Sometimes it does, and...
January 15, 2013 at 2:17 pm
koln (1/15/2013)
Overall, I only want this trigger to fire when a row is added or a row...
January 15, 2013 at 2:05 pm
It should look something like this:
CREATE TRIGGER [dbo].[Joe_trigger] ON [dbo].[TableA]
AFTER INSERT, UPDATE
AS
BEGIN;
UPDATE B
...
January 15, 2013 at 12:59 pm
majorbloodnock (1/15/2013)
GSquared (1/15/2013)
majorbloodnock (1/15/2013)
Gary Varga (1/15/2013)
January 15, 2013 at 10:07 am
GO is a batch separator, not a T-SQL command, so it really doesn't work that way. That's why you can change to something other than "GO" in your SSMS...
January 15, 2013 at 10:01 am
arnipetursson (1/15/2013)
The optimizer has no statistics on @ tables and assumes it has ONE row.
Even if you put a primary key on it,...
January 15, 2013 at 9:57 am
Is this something you need to automate so it can be repeated, or something you need to do once (or infrequently)?
The best method will depend on the answer to that...
January 15, 2013 at 6:46 am
There are details here on what virtual files are and how they work: http://msdn.microsoft.com/en-us/library/ms179355(v=SQL.105).aspx
January 15, 2013 at 6:44 am
You have to give a table variable an alias in order to do this kind of thing.
DECLARE @MyTable TABLE
...
January 15, 2013 at 6:42 am
Viewing 15 posts - 151 through 165 (of 14,952 total)