|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SQL Server database programmingmicrosoft.public.sqlserver.programming
Cross-database proc
Greg Pasquariello -
23 Sep 2006 1:46 PM - 1 message
Is it possible to create a stored procedure that exists in one database, but runs in the context of the database from which I call it? For example, I want my proc (A.dbo.MyProc) to create table Foo in my new ...
PL/SQL to T-SQL
Rob -
21 Sep 2006 9:01 PM - 1 message
Hello: I've been pulling my hair out in trying to convert the following two Oracle stmts. to its T-SQL equivalent: SET @sSelect = 'Select sum(decode(tc_trx_code_type,''X'',decode(instr(tc_description,''GST''),0,decode(instr(tc_description,''G.S.T.''),0,round(ft_guest_account_debit,3),0),0),0)) ''PST/PHT'',' ...
Concatenate Null Fields SQL Server 2000
Anonymous -
20 Sep 2006 8:04 PM - 1 message
I hope I can explain this . . . I have several fields that can be null and I need to concatenate them together to create a single value. Not my data, so please understand it follows no logical rules. Here are the fields: ...
need help with insert into table from two other tables
mchi55 -
19 Sep 2006 9:49 PM - 1 message
I have a table with 3000 Client_id's. I have another table with 56 different order types. The order types primary key is two fields (search_id, item_id) I need to insert into another table each client_id, along with each ...
Why cannot set a constant Unicode string?
Vu Quang Thang -
19 Sep 2006 9:55 AM - 1 message
Hi, pls. see this code: DECLARE @SQL nvarchar(4000) SELECT @SQL = 'SELECT * FROM CUSTOMER WHERE CustomerName = N''Trần Tấn Háºn''' PRINT @SQL The result is this always: SELECT * FROM CUSTOMER WHERE CustomerName = N'Tr?n T?n H?n' ...
How To Select a Certain Limited Number of Rows Per ID?
unabogie -
19 Sep 2006 12:46 AM - 1 message
I have a table with entries tied to a membership database. The problem is that I want to select a limit of sixteen entries per member, per day, where some members have 16+ entries per day. I have this so far ( which I've simplified for this post) ...
Using CASE in SEECT
Mark Goldin -
18 Sep 2006 8:42 PM - 1 message
Can I have CASE for something like this: ........ ........ where id in case @TestVal when 1 then (select min(id) as id from ......) else (select max(id) as id from ....) end Thanks for help. ...
Newbie, Update table problem.
Cylix -
18 Sep 2006 1:50 AM - 1 message
I have a table with 80,000 rows. A column of that is username, I am going to change the table structure since we got a user table already. I have added a column named userID. I would like to update the userID from user table by the username, ...
|
|||||||||||||||||||||||