Viewing 15 posts - 526 through 540 (of 14,953 total)
I build separate logging into that kind of script. It checks its own log to see if a database has had a full backup in the expected timeframe. ...
November 12, 2012 at 7:00 am
Pull the data into a staging table that has a varchar column instead of a date/datetime column, for that data. Then you can use an SQL script task to...
November 12, 2012 at 6:52 am
CASE can do odd things to datatype precedences, especially with things like zero-length strings (which can default to numeric datatypes, oddly enough, since '' = 0, per SQL Server).
Try using...
November 12, 2012 at 6:47 am
It's doing a Diff on the one you restored. Obviously, that database has a restorable Full backup, since you just used it to restore the database, so it can...
November 12, 2012 at 6:43 am
If I understand the requirements correctly, it would look something like this:
IF OBJECT_ID(N'tempdb..#T1') IS NOT NULL
DROP TABLE #T1;
IF OBJECT_ID(N'tempdb..#T2') IS NOT NULL
...
November 12, 2012 at 6:41 am
tyson.price (11/12/2012)
GSquared (11/6/2012)
November 12, 2012 at 6:33 am
One instance will work, but I'd keep the training databases on a separate instance, or even in a separate virtual computer, if it were me. That way, you can...
November 12, 2012 at 6:30 am
Jeff Moden (11/11/2012)
Although I certainly appreciate the self-healing nature of XML to automatically capture column additions deletions to the table, full row auditing is already expensive from a storage standpoint....
November 12, 2012 at 6:19 am
Have you set a default value for the variable?
November 9, 2012 at 11:52 am
Jeff Moden (11/9/2012)
GSquared (11/9/2012)
November 9, 2012 at 11:46 am
Not a hijack. It's a valid and relevant point.
November 9, 2012 at 11:20 am
Select Into is used to create a table. Insert Select is used to insert data into an existing table. You're using Select Into, and getting errors from that,...
November 9, 2012 at 11:18 am
Jeff, if it helps, here's a version that looks a little more "SQLish". It does essentially the same thing as Magoo's code, but uses subqueries as an intermediate that...
November 9, 2012 at 8:16 am
Does the table you want to insert the data into already exist, or are you creating it from the Select query?
If it already exists, add the correct Insert statement before...
November 9, 2012 at 6:29 am
I've seen issues with both performance, and with the expected results of the query, being worse in the first one. If you use Update From, make the target of...
November 9, 2012 at 6:25 am
Viewing 15 posts - 526 through 540 (of 14,953 total)