Viewing 15 posts - 91 through 105 (of 119 total)
That's not a problem.
When you create the table, or add a column, you can specify the start value and increment of the identity column
CREATE TABLE TestTable
(Col1 int IDENTITY(100, 2)
...
March 8, 2005 at 1:26 am
As far as I know, a database can not be easily moved without removing replication. Neither detaching the database nor backing up, dropping, and restoring with move will work.
Perhaps you...
March 5, 2005 at 1:58 am
It seems like you want to execute this query aginast several databases. Is this the case?
Assuming so, you have a few options:
1. Use a WHILE loop or a cursor to...
March 5, 2005 at 1:53 am
Your database design has a foreign key between the table voucher_header and another table, likely named customers. Voucher_header a child table and has a cust_no that references the Customer table.
The...
March 5, 2005 at 1:30 am
To get output information from dynamic SQL queries, use sp_executesql instead of EXEC to actually execute your queries. The technique is to write your output to a variable which is...
February 18, 2005 at 1:58 am
If you truly need to pass in the db name as a parameter, the only way I know how is to use dynamic sql, either with EXEC or sp_executesql.
Can you tell...
January 27, 2005 at 6:41 pm
Chuck,
Check out Microsoft's white paper entitled: "Transactional Replication Performance Tuning and Optimization" . It's got best practices for replication performance and some case studies (being published in 2001, it's a bit...
January 16, 2005 at 12:56 am
Are there foreign keys that reference this table? Deletes have to check each child table to ensure that foreign key relationships are maintained (by restricting or cascading the delete). I...
December 29, 2004 at 1:46 pm
No, unless you've got a backup with the version you want to recover.
Scott Thornburg
Volt Information Sciences
December 27, 2004 at 9:01 am
Yes, it is possible. I have such a partitioned view with a text field in production with no problems.
Assuming that you did not explictly indicate DISTINCT in the sql defining the view,...
December 26, 2004 at 7:20 pm
SQL 2000 does not allow the syntax:
select A.columns, B.columns
from TableA as A
join dbo.MyFunction(TableA.ID) as Bon ...
However, you will be able to get this in SQL 2005...
December 24, 2004 at 4:13 pm
David,
Any ad hoc query that is cached will give a Cache Insert and Cache Hit events, and apparently assigns an object id in doing so. For example, set up a session...
December 24, 2004 at 4:00 pm
I'm not fully sure what you are intending with the FLD = '0' piece. Do you only want to update those rows if there is a row in TableB that...
December 14, 2004 at 2:34 pm
Paul,
As your subject heading suggested, the problem is with nulls and equality. With standard defaults for SQL SERVER (ANSI_NULLS on) it is neither true that null = null or that...
December 14, 2004 at 2:22 pm
The standard answer to this type of question is that this is something best done in the client, not at the SQL Server level.
But in cases where you can't...
December 5, 2004 at 3:18 pm
Viewing 15 posts - 91 through 105 (of 119 total)