Viewing 15 posts - 6,721 through 6,735 (of 7,429 total)
Sorry, I know of no way off hand to do it for the session. You could create a view to the object with same name and dbo as owner I...
March 21, 2002 at 6:08 am
Either way just add you join and the db.schema.table to join.
Ex
SELECT *
FROM <SERVER>.<DB>.<DBO>.<TABLE>
INNER JOIN
<LOCALDB>.<DBO>.<TABLE>
ON
THIS = THAT
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston...
March 21, 2002 at 6:07 am
I am still not sure I will agree with you on a every table should have a Primary Key or index (clustered or non). Small tables that take up no...
March 21, 2002 at 6:04 am
...You spend hours on end with the same query mumbling something to the effect of "We can rebuild it, we have the technology. We can make it faster."
"Don't roll your...
March 21, 2002 at 5:11 am
sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'
so
sp_changeobjectowner 'Partner', 'bar'
and so no schema needed do
sp_changeobjectowner 'Partner', 'dbo'
"Don't roll your eyes at me. I will tape them...
March 21, 2002 at 5:06 am
Ok
SELECT * INTO dbo.NewTable FROM OldTable WHERE .....
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
March 21, 2002 at 5:03 am
Hit this about 30 minutes after going to bed last night and see it much better than my previous query.
UPDATE calltable SET ProviderCountry =
(SELECT TOP 1 country FROM countrycodes WHERE...
March 21, 2002 at 5:00 am
Not like you have it. Only this way
CREATE TABLE tablename (
ColumnDefinitionsHere
)
INSERT INTO tablename (ColumnListAcceptingDataHere) SELECT (*) from tablename2
WHERE condition, etc, etc..
Create table cannot add data to the table, this must...
March 21, 2002 at 4:20 am
To get the single apostrophes just double them when building dynamically. And triple to concatinate a string in while keeping the singles around it.
Ex.
DECLARE @some_string VARCHAR(500)
SET @some_string = 'Bulk Insert...
March 21, 2002 at 4:15 am
CREATE PROCEDURE ip_InsertIt
@value1 nvarchar(100),
@value2 datetime
AS
INSERT INTO tablename (col1,col2) values (@value1,@value2)
Just like doing any other stored procedure with a non-unicode datatype.
"Don't roll your eyes at me. I will tape them...
March 21, 2002 at 4:12 am
Do this with a check constraint. Ex.
ALTER TABLE tableX WITH NOCHECK
ADD CONSTRAINT limitvalue CHECK (columnx IN ('A','I','U')
If you want to have check table at creation chnage NOCHECK to CHECK
See...
March 20, 2002 at 7:33 pm
Ok this was really fun and here is how I figured to get around the duplicates
UPDATE calltable
SET ct.country = cc.country
FROM
calltable ct
INNER JOIN
countrycodes cc
ON
left(ct.callnumber,len(cc.prefix)) = cc.prefix
WHERE
cc.prefix = (SELECT TOP 1...
March 20, 2002 at 7:22 pm
2 things
1) Are you trying to do this thru the Terminal Services Client?
2) Can you post the text from the following files or email to me.
CNFGSVR.OUT
SQLSTP.LOG
"Don't roll your eyes...
March 20, 2002 at 5:53 pm
Still thinking about the problem with the multiple problem which is the base issue and will slow you down. I will try a few things later and let you know...
March 20, 2002 at 2:07 pm
You apparently posted at the same time I was, I am trying to think about that to make sure it is covered.
"Don't roll your eyes at me. I will tape...
March 20, 2002 at 1:11 pm
Viewing 15 posts - 6,721 through 6,735 (of 7,429 total)