Viewing 15 posts - 2,536 through 2,550 (of 13,460 total)
if you want to go the all TSQL route, then Openrowset of a single file,or linked server for a folder full of files is probably the answer.
with an linked server/openrowset...
Lowell
February 10, 2014 at 10:26 am
you cannot change the default trace, but you can create your own trace, with the exact same settings, and have it use more rollover files, larger files, etc.
another issue...
Lowell
February 10, 2014 at 9:41 am
Igor Micev (2/10/2014)
Lowell (2/10/2014)
INSERT INTO TableB(a,b,c)
SELECT a,b,c FROM INSERTED
WHERE ConditionA=1
INSERT INTO TableB(a,c,d)
SELECT a,c,d FROM INSERTED
WHERE ConditionB=1
[/code]
Be careful. What if the first INSERT extends the ConditionB set?!
exactly why i said it...
Lowell
February 10, 2014 at 7:40 am
gautham.gn (2/10/2014)
I have a requirement that two update conditions may happen for a table A. And we need to store the updated records in table B in such a way...
Lowell
February 10, 2014 at 7:08 am
David, where would you put the data reference to the file? is there an additional column at the end of the table, that you can use to update right after...
Lowell
February 7, 2014 at 2:34 pm
since what he pasted was almost, but not quite, tab delmited, i rant it through my macro to cleanup;
MAYBE the data is two columns, but here's what i think he...
Lowell
February 7, 2014 at 1:39 pm
pretty sure that error is client-side error from ssms, and not a sql server error.
is your script pretty large? does it not have GO statements between some of the blocks...
Lowell
February 7, 2014 at 1:27 pm
have you seen sqlfiddle.com/ yet?
it's a nifty web based site that puts you in a sandbox for testing;
in the long run, it's much better to add a sql express or...
Lowell
February 7, 2014 at 1:24 pm
for sql users or windows users, you need to UNION ALL something like this to explicitly show the sysadmins, since they inherit the permissions via their server role
SELECT r.name,'sysadmin',dbs.DatabaseName
FROM...
Lowell
February 7, 2014 at 1:07 pm
something to help you visualize:
anything with rows modified<5% don't really need to be touched, anything with rows modified < 30 % can take advantage of the REORGANIZE command; anything...
Lowell
February 7, 2014 at 12:18 pm
the answer is the maintenance plan is "good enough";
the maintenance plan is good, but not great; that's the sole difference.
the maintenance plan rebuilds everything, which is often not necessary; an...
Lowell
February 7, 2014 at 12:14 pm
stefan 97267 (2/7/2014)
I have a problem that i need help with, tried to seach the forum posts but got too many hits.
A customer has...
Lowell
February 7, 2014 at 8:19 am
is this a subset of a larger script? why the dynamic SQL?
also, since you drop and recreate the table every time, why not a temp table?
why create the table...
Lowell
February 7, 2014 at 7:01 am
hoseam (2/7/2014)
Without listing the columns??
nope. it's actually a best practice to name the columns every single time, because as soon as you add a column to either table, any existing...
Lowell
February 7, 2014 at 6:40 am
hoseam (2/7/2014)
Is there a way I can:
INSERT INTO TableA
SELECT * FROM TableB
but exclude one column from TableB?
My TableB has ID which is IDENTITY(1,1), I want to select everything to TableA...
Lowell
February 7, 2014 at 6:31 am
Viewing 15 posts - 2,536 through 2,550 (of 13,460 total)