Viewing 15 posts - 136 through 150 (of 154 total)
you can create a UDF for generating a incremented number for a table and attach it to the column in the CREATE TABLE statement
August 14, 2001 at 9:37 am
Andy's right
Go to Tools > Options > Results > Maximum characters per column to change this setting
in QA
August 14, 2001 at 7:13 am
This is what books online says about sp_executesql
----------
sp_executesql can be used instead of stored procedures to execute a Transact-SQL statement a number of times when the change in parameter...
August 9, 2001 at 5:44 am
i agree with you simon ...the if contruct would be more optimized
but the solution i choose depends on how complex the query is ...i often find myself writing complex...
August 9, 2001 at 4:34 am
this look like it would need two tables rather than one -if u want a cursor less solution
if u can post the table structures and some sample data we might...
August 8, 2001 at 11:30 am
use a alias i suppose !!
August 8, 2001 at 6:11 am
check this article
http://www.sqlservercentral.com/columnists/bknight/encryptfunction.asp
August 8, 2001 at 4:45 am
i think i see what the problem is ...
try declaring the table explicitly
CREATE TABLE #tmpReportClient
...
instead of SELECT INTO
better still you can put the whole code in a procedure and use...
August 6, 2001 at 10:19 am
Try dropping the temp table right after the select rather than at the top
SELECT * FROM #tmpReportClient
DROP Table #tmpReportClient
August 6, 2001 at 10:00 am
there's no equivalent to the split function in Sql
this is what i use
IF LEN(RTRIM(LTRIM(@StrList))) > 0
BEGIN
WHILE PATINDEX('%,%',@StrList) > 0
BEGIN
SET @StrPos = PATINDEX('%,%',@StrList)
SET @TempId = CONVERT(INT,LEFT(@StrList,(@StrPos - 1)))
SET...
August 5, 2001 at 9:55 am
Oops
CREATE PROC usp_SelectClientAccountManager @ClientID Int , @AccountManager Int AS
SET NOCOUNT ON
SELECT *
FROM Tbl_ClientAccountManager
WHERE ( ClientID = ISNULL(@ClientID,ClientID))
AND ( AccountManagerID = ISNULL(@AccountManagerID,AccountManagerID))
August 2, 2001 at 9:18 am
Would'nt this work
CREATE PROC usp_SelectClientAccountManager @ClientID Int , @AccountManager Int AS
SET NOCOUNT ON
SELECT *
FROM Tbl_ClientAccountManager
WHERE ( ClientID = ISNULL(@ClientID,ClientID))
AND ( AccountManagerID = ISNULL(@AccountManagerID,ClientID))
GO
August 2, 2001 at 9:07 am
thanks chris..
just found out it was the firewall..it seems that the sa "forgot" to open it
aarrrrrrrrrgggghhhhhh
August 2, 2001 at 9:01 am
nope u cannot change the max size of the row...
for the blob/image/text fields the storage is different . i think in sql 7 it was implemented as a linked list...
August 1, 2001 at 6:07 pm
Viewing 15 posts - 136 through 150 (of 154 total)