Viewing 15 posts - 31 through 45 (of 200 total)
Look up sqlcmd in Books Online.
The command line argument you're loking for is "-h" the value you should supply is -1.
May 13, 2009 at 6:14 am
In a SQL Server database you basically store data in tables, so using a table for this kind of storage seems like the most logical solution.
A couple of hints: familiar...
May 13, 2009 at 6:09 am
Try this:
declare@querynvarchar(max)
set@query
= (
selectleft(Script.Query, len(Script.Query) - 9)
from(
selectScript.Query.query('Query').value('.', 'nvarchar(max)') as Query
from(
selectQuery
= N'
selectTABLE_CATALOG + ''.'' + TABLE_SCHEMA + ''.'' + TABLE_NAME collate Latin1_General_CI_AS as QualifiedObjectName
from'
+ sys.databases.[name]
+ '.INFORMATION_SCHEMA.TABLES
union all'
fromsys.databases
for xml path(''), type
) Script (Query)
)...
May 13, 2009 at 6:02 am
Single characters and most symbols are excluded from full-text indexing. Most of them are listed as "noise words" (look them up in Books Online) and are listed in noise-word files...
May 13, 2009 at 5:47 am
Changing the isolation level of a transaction to SNAPSHOT will cause an exception.
Repro:
-- step 1 start
create databaseSnapshotPromotion
go
alter databaseSnapshotPromotion
setallow_snapshot_isolationon
go
alter databaseSnapshotPromotion
setread_committed_snapshoton
go
useSnapshotPromotion
go
create tabledbo.test
(
cint
)
go
-- step 1 end
-- step 2 start
settransaction isolation level read committed
begin...
April 21, 2009 at 10:27 am
Turning ANSI_WARNINGS off should not be a permanent solution. ANSI warnings prevent data corruption that may be caused by inconsistent use of data types (e.g. truncation) and operations where divide-by-zero...
April 21, 2009 at 10:03 am
Answers inline.
Carl B. (4/21/2009)
I don't suggest to set these database settings at connection time. I wrote : "I ask this question because our ALTER DATABASE statements are not...
April 21, 2009 at 7:50 am
Are you suggesting setting these database settings whenever you connect to the database? That's not necessary. You should set this when the database is created, and only use those that...
April 21, 2009 at 2:07 am
You're using DTS on SQL 2005? Any special reason?
With SSIS you can redirect error rows in the Data Flow Source.
IMHO, if "getting through the project" is the goal then why...
April 21, 2009 at 1:47 am
What's the data type of the MCTR_ENTITY column?
Is this a typo?
SET [MCTR_ENTITY] = '#PCA'
WHERE MCTR_ENTITY = '#PCA'
The values are the same.
Are there any triggers on that table?
April 21, 2009 at 1:34 am
As stated in the error message, you cannot drop an index that is being referenced by a foreign key constraint.
You need to drop all constraints referencing the index before you...
April 21, 2009 at 1:25 am
What does the dbo.Eur_RMISWebInterface_GetProductImagesForWeb procedure do?
April 6, 2009 at 2:21 am
No problem. 🙂
Post Back and let us know how you get on!
March 7, 2009 at 12:17 am
I am not aware of such a limitation but it would seem that indexes on computed columns are not supported by FTS.
Is there another unique column that you can use...
March 6, 2009 at 6:21 am
You can join the two tables and use a CONTAINS predicate on each of them with the same search argument.
E.g.:
select<column list>
from<table 1> t1
<inner or outer?> join<table 2> t2
ont2.<common key> =...
March 6, 2009 at 5:24 am
Viewing 15 posts - 31 through 45 (of 200 total)