Viewing 15 posts - 1,036 through 1,050 (of 1,132 total)
No reboot or SQL Server/Agent restart is required.
I am certain because on each of over 100 SQL Servers, a job runs on Wednesdays at 3PM that changes the...
October 6, 2005 at 6:12 pm
the dt_? stored procedures are not related to replication but are used to integrate with MS Visual Source Safe.
As Service Patchs might assume that these procedures exists and the installatiuon...
October 6, 2005 at 5:40 am
If your schema is:
create table TBL_Y
(field1 char(1) not null
,field2 char(1) not null
, constraint TBL_Y_P primary key (field1, field2)
)
go
create table TBL_X
(field1 char(1) not null
,field2 char(1) not null
, Name1 varchar(255) not null
,...
October 5, 2005 at 10:49 am
There is a work-around for mapping global variables that is at http://www.sqldts.com/default.aspx?234.
Basically, the steps are:
1. Have a dummy sql statement that is on one line that has the desired variables....
October 4, 2005 at 11:37 am
There are two methods of limit the resources used by a SQL statment. From BOL:
Using SET QUERY_GOVERNOR_COST_LIMIT applies to the current connection only and lasts the duration of the...
October 4, 2005 at 11:04 am
When a table column is defined with a case insensitive collation but you want comparisons to use a different collation, the desired collation can be specified within the SQL. ...
October 4, 2005 at 10:51 am
There not enough information to determine exactly what is needed. Can you post the primary key of the table ?
Assummimg you want the top 10 Sources and then the...
September 30, 2005 at 3:58 pm
SQL Server does not support arrays.
One altenative is to pass XML (see SQL Server Books on Line for parsing XML in stored procedures)
See also "Arrays and Lists in SQL Server"...
September 29, 2005 at 6:21 pm
This is not true for SQL Server but is true for some other RDBMS such as Sybase's SQL Anywhere.
It is not good practice to ALWAYS create an index on the...
September 29, 2005 at 6:16 pm
Alternatively, sp_execresultset is a system procedure that executes the result set of a SQL statement.
exec dbo.sp_execresultset @cmd =
'select ''GRANT ALL ON ''
+ QUOTENAME( table_schema) + ''.'' + QUOTENAME...
September 28, 2005 at 9:47 am
To get Monday's date giving the number of weeks since the beginning of the yearm, try
Declare@Weeksinteger
,@YearStartdatetime
set@Weeks= 37
set@YearStart= '2003-01-01'
selectMondayOfWeek = WeekDate
+CASE DATEPART(dw, WeekDate)
WHEN 1 then +1-- Sun
WHEN 2 then 0-- Mon
WHEN...
September 27, 2005 at 3:27 pm
If by registered servers, you mean registered with Enterprise Manager, use RegEdit to export from registry key HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\SQLEW\Registered Servers X
and then import into the other workstation.
September 27, 2005 at 2:57 pm
Under SQL Server, integrity constraints are checked when the action is performed not when the commit is performed.
Some other RDBMS do support an option that some integrity contstraints can be...
September 26, 2005 at 9:40 am
Joe Celko just this month published a solution for inventory which could be adapted to Payment allocations.
September 25, 2005 at 10:32 am
Is the C drive on the database server ? All reference to relative paths are from the point of view of the SQL Server not from where the stored...
September 21, 2005 at 11:04 am
Viewing 15 posts - 1,036 through 1,050 (of 1,132 total)