Viewing 15 posts - 76 through 90 (of 248 total)
You can encrypt your stored procedure code by using the "WITH ENCRYPTION" option. Look up BOL for more information. Once the stored procs. are created with this option, the text...
January 16, 2006 at 2:03 pm
It was a typo on my part...I meant to write do NOT get re-used automatically unless you take care of re-sequencing by using a script...thanks for correcting it.
January 7, 2006 at 2:38 pm
--Script:
SET NOCOUNT ON
--Declare the table variable
DECLARE @LogTimes TABLE(
EmployeeId varchar(10) NULL,
Project VarCHAR(10) NULL ,
LogIn DATETIME NULL,
LogOut DATETIME NULL,
Time int NULL)
--Insert the records
INSERT @LogTimes SELECT '123', 'A', CONVERT(VARCHAR(10),...
January 7, 2006 at 11:15 am
1) You can check what the current identity value is by doing:
select ident_current('table_name')
The next value will be the higher increment i.e. the next value.
The missing values (aka holes) in...
January 7, 2006 at 10:52 am
CREATE TABLE XXTSTATS
(
xts_dw_count INT,
xts_table VARCHAR(10)
)
GO
INSERT INTO XXTSTATS VALUES (0, 'MY_TABLE')
GO
CREATE TABLE MY_TABLE (COL1 INT)
INSERT INTO MY_TABLE VALUES (1)
INSERT INTO MY_TABLE VALUES (2)
INSERT INTO MY_TABLE VALUES (3)
GO
DECLARE @table VARCHAR(10), @CMD NVARCHAR(100)
SET...
January 4, 2006 at 6:08 am
There isn't much of a difference. By following what your DBA is saying, you will avoid one SQL statement that checks for the existence of a record (but that...
December 31, 2005 at 2:16 pm
1GB of RAM is very less if you have your application, IIS and SS2k running on the same machine. If you are using SQL Server Standard Edition, then you...
December 31, 2005 at 8:55 am
There is actually a bit more to it depending upon the ANSI_PADDING settings...see this discussion thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=19&messageid=226423#bm226578
December 29, 2005 at 8:30 am
Did you check the error due to which it failed ? Fix that issue that caused the job to fail and re-run the job (you can right click and...
December 29, 2005 at 6:40 am
Please don't cross-post...your question was answered here:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=246133
December 22, 2005 at 6:23 am
I am assuming that it is a inserting a bunch of records in one shot otherwise, it is fairly simple to catch this with profiler i.e. you are doing "insert...
December 22, 2005 at 6:20 am
You can use a temporary table for that.
select id, identity(int, 1, 1) as row_num
into #temp
from existing_table
Once that is done, you can update the existing_table's new column with the row_num...
December 19, 2005 at 7:43 am
Is the update on table2 on ServerB database based on data from table1 in ServerA ? If so, you can define a linked server on ServerB that points to...
December 17, 2005 at 11:40 am
Defaults don't work that way. If an explicit NULL value is provided, that NULL value is used for doing the insert instead of the default value for that column....
December 17, 2005 at 11:30 am
Viewing 15 posts - 76 through 90 (of 248 total)