Viewing 15 posts - 301 through 315 (of 790 total)
Groovy,
Maybe, to enforce your rules, a schema such as:
CREATE TABLE Book (
ID INT IDENTITY PRIMARY KEY,
Book_name...
Cheers,
- Mark
September 11, 2003 at 11:42 pm
As a start, you can trace it with SQL Profiler.
Trace Event: SP:StmtCompleted
Trace Columns: default + databaseid + objectid
Filters: databaseid = <your database id>, objectid = <object id of the...
Cheers,
- Mark
September 11, 2003 at 11:08 pm
Not only that, it's after lunch Friday.
![]()
Cheers,
- Mark
Cheers,
- Mark
September 11, 2003 at 10:50 pm
It would work the other way around. Depends on whether it's going to break your app if you remove the dots prior to issuing the search. Eg.
Cheers,
- Mark
September 11, 2003 at 10:24 pm
Yes, as far as I know, sp_executesql is the best way to go.
Alternatively, use EXECUTE (<someString>) to achieve the same sort of thing.
Just wondering.... do you really have to have...
Cheers,
- Mark
September 11, 2003 at 7:19 pm
You can use the NOEXPAND hint in the query.
eg. SELECT * FROM MyIndexedView (NOEXPAND)
If the view is materialised you see an entirely different (and simpler) query plan.
If the view...
Cheers,
- Mark
September 11, 2003 at 4:27 pm
Or, going back to your original idea of a string variable....
create table #ThisTable (
a int not null,
...
Cheers,
- Mark
September 11, 2003 at 4:22 pm
Difficult question. It CAN be done, but it's not an ideal solution. The example below will acheive the aim (in a very ugly way), using SQL's automatic creation...
Cheers,
- Mark
September 11, 2003 at 4:12 pm
I would suggest log shipping, but I take it both of your databases will be subjected to updates - will they?
Cheers,
- Mark
Cheers,
- Mark
September 11, 2003 at 6:15 am
I thought it was a good question, and very relevant to common DBA troubleshooting activities.
Cheers,
- Mark
Cheers,
- Mark
September 11, 2003 at 2:22 am
Frank's recent "Brief History of SQL" article brought back bad memories.... SQL/DS.
Am I showing my age? Lucky I've kept it a closely guarded secret.
And before that, I...
Cheers,
- Mark
September 11, 2003 at 2:13 am
I'm with jeffwe. I suggest doing an update statistics on both tables, then re-trying the execution plans.
Cheers,
- Mark
Cheers,
- Mark
September 11, 2003 at 2:04 am
On occasions when I didn't want to go the "upgrade" route I would:
1. create the db under sql2000
2. script all objects under 6.5
3. execute the script on sql2000
4. use dts...
Cheers,
- Mark
September 11, 2003 at 1:57 am
an example:
SELECT
Null_discounttype = SUM(CASE WHEN [discounttype] IS NULL THEN 1 ELSE 0 END),
Null_stor_id =...
Cheers,
- Mark
September 11, 2003 at 12:42 am
You're declaring but not initialising @LruListOut and @CurOut. They are NULL after declaring them, and any subsequent operations where they are one of the operands will also return NULL.
SET...
Cheers,
- Mark
September 10, 2003 at 5:55 pm
Viewing 15 posts - 301 through 315 (of 790 total)