Viewing 15 posts - 496 through 510 (of 1,109 total)
Have a look at http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx
Regards,
Andras
January 16, 2008 at 8:30 am
Ray (1/15/2008)
Did you use RedGate tools? If so i have them as well.
Yep 🙂 (in this case, to script a db you can just compare it against an empty database,...
January 15, 2008 at 8:59 am
An alternative could be is to use a third party tool to script the whole schema, modify the creation script to include the right collation, create the new database, use...
January 15, 2008 at 8:39 am
rdimaria (1/15/2008)
Is...
January 15, 2008 at 8:30 am
Jeffery Williams (1/15/2008)
I figured while I had your ear I would avoid a whole new thread. Then again someone else may find the...
January 15, 2008 at 8:26 am
Jeffery Williams (1/15/2008)
Hey one more question for you if you don't mind.
I am writing an automated route that I do not want to run (will be scheduled as a job)...
January 15, 2008 at 8:16 am
This is similar to variables (these are pulled out of the script before execution, so a particular declaration is evaluated only once). Not sure how nice it is to use...
January 15, 2008 at 7:49 am
It is because of datatype precedence. Try casting the variables to varchars like:
SET @ObjectString = 'INSERT INTO SYS_Object
(MSGID, SQLID, ObjectName, ObjectTypeID, ModuleID, isActive, CreateDate, DBID)
SELECT ' + cast(@MSGID as varchar(100))...
January 15, 2008 at 7:29 am
On SQL Server 2000 you cannot insert the results of an exec into a table variable. (you can do this on 2005 and 2008 though). You could try to use...
January 15, 2008 at 7:24 am
Is this on SQL Server 2000 or 7? SQL Server 2005 should have instant file growth support.
Regards,
Andras
January 15, 2008 at 5:04 am
You can use the row_number function on SQL Server 2005 (I assume you are using this since this is the 2005 forum :))
SELECT *
FROM ( SELECT...
January 15, 2008 at 4:16 am
GilaMonster (1/15/2008)
If you update a view, the table underlying that view is updated. You shouldn't need a trigger.
Gail is of course right :). If you just want to have an...
January 15, 2008 at 4:04 am
Hi, a very basic trigger you could use a starting point is:
CREATE TRIGGER dbo.view_badge_upd ON dbo.view_badge
INSTEAD OF UPDATE
AS
IF @@rowcount = 0
...
January 15, 2008 at 3:36 am
If you cannot use the same user to access the database, and want to be able to access it as dbo without prefixing the owner, you will need to change...
January 14, 2008 at 3:39 am
The column on which you are partitioning the data must be part of the table schema. You could denormalize your table if you must partition the dependent table. I assume...
January 14, 2008 at 3:32 am
Viewing 15 posts - 496 through 510 (of 1,109 total)