Viewing 15 posts - 10,906 through 10,920 (of 13,460 total)
i have already done something very similar...this code may help out, or just complicate matters...
it's a huge stack of updates to a temp table, so I could review the old...
Lowell
June 30, 2009 at 10:11 am
you error message is not related to your (max) string, it's related to a specific varchar/char column in the sql statement you built...
if a column has a definition of a...
Lowell
June 30, 2009 at 9:58 am
ahh i see what you are after...i think you'll end up finding that all the DMV's get set to zero whenever the server is stopped and started, though right?
so...
Lowell
June 30, 2009 at 9:54 am
i think the original poster wanted a different database, not necessarily a different server, right?
a simple trigger like:
CREATE TRIGGER TR_MyTrigger On SomeTable
FOR UPDATE
AS
BEGIN
UPDATE MyAlias
SET col1 = INSERTED.col1,
col2=INSERTED.col2
...
FROM INSERTED
INNER...
Lowell
June 30, 2009 at 7:28 am
jabba (6/30/2009)
Lowell
June 30, 2009 at 7:11 am
not enough information to help you; you can see how long a command took with a trace or by setting SET STATISTICS TIME ON , but not an estimated time,...
Lowell
June 30, 2009 at 7:05 am
your co workers are under informed, I think.
when you move the primary key/clustered index of a table to a new file group, you move it's data as well.
example:
CREATE...
Lowell
June 29, 2009 at 11:01 pm
there's a pretty good thread on the issue here, but it may or may not be the same thing you are experiencing:
it seems the default behavior of SQL 2005 changed,...
Lowell
June 29, 2009 at 12:03 pm
well, just as the error message says, the first thing I'd do is check to see if the server allows remote connections:

This issue vs your credentials in your signature don't...
Lowell
June 29, 2009 at 11:34 am
the above trigger example assumes thre would only be ONE row ever updated at any one time...it best practice is to assume more than one row comes from the INSERTED...
Lowell
June 29, 2009 at 9:02 am
yeah i agree; either fix the data, or the one parameter raising the issue. I would not try to change hundreds of other parameters...to many things for the QA team...
Lowell
June 29, 2009 at 8:56 am
@Param1 NUMERIC(2, 0)---this says the definition is 2 digits, none after the decimal....but you are assigning a 5 digit number to it: @Param1 = 92229.0
since the biggist...
Lowell
June 29, 2009 at 7:47 am
he can use a case statement to group them horizontally;
well...three case statements, right?
case
when c1 <= c2 and c1 c1 and c2 <= c3 then c2....
Lowell
June 29, 2009 at 7:42 am
RESTORE DATABASE myDatabase WITH RECOVERY would work only if there is already a backup in place and you want to restore the default backup. if this is on a diffrerent...
Lowell
June 29, 2009 at 6:37 am
you'll want to read up on RESTORE from Books online; if you are restoring from a file, the command would look something like this:
RESTORE DATABASE [YOURDB]
FROM DISK =...
Lowell
June 29, 2009 at 6:23 am
Viewing 15 posts - 10,906 through 10,920 (of 13,460 total)