Viewing 15 posts - 541 through 555 (of 961 total)
with cte as (
select ROW_NUMBER() over(partition by File_desc order by File_desc,rec_index desc) as Ranks ,* from MyTable
where is_modified = 0
)
select * from cte where ranks...
August 17, 2011 at 5:26 am
Moving databases servers to new domains is quite common. Usually part of consolidating servers , Virtualization or even a data centre move.
Common things that go wrong are Firewalls and ports...
August 17, 2011 at 5:03 am
http://msdn.microsoft.com/en-us/magazine/cc794278.aspx
In SQL Server 2008 you can now store data in hierarchies , the above link shows how.
August 17, 2011 at 4:12 am
Probably not in production. While there are secure ways of using xp_cmdshell. I can't/won't trust everybody to use it the way its meant to be. I could leave the company...
August 17, 2011 at 1:40 am
http://www.sqlserverclub.com/articles/how-to-deal-with-negative-spids-in-sql-server.aspx
Nice Read on the issue your trying to fix
August 17, 2011 at 1:34 am
Since your using sql 2008 , you could consider using Filestream
August 17, 2011 at 1:26 am
I repeat :- Please FULLY Qualify the object names
Create procedure Newdb_info
as
begin
create table Newdb_info.dbo.Teachers
( Emp_id int not null primary key, lastname varchar(20) not null ,firstname varchar(20)not null,
Assign_div nvarchar(20), sp_subject varchar(20),...
August 17, 2011 at 1:20 am
http://msdn.microsoft.com/en-us/library/ms186973.aspx
Assuming by key you mean primary and foreign keys the above link explains cascading.
You could also have a DMl trigger on the table which perform the same action but gives...
August 17, 2011 at 1:17 am
the fully qualified name should look like
databasename.schema.objectname
I doubt you have a database called dbo ? , replace dbo with the name of the database that you want the table...
August 17, 2011 at 1:11 am
Encryption can happen at many different levels.
E.g the database encryption can be enabled , TDE , disk level encryption , Firmware etc
the application can also encrypt data before sending...
August 17, 2011 at 1:09 am
you can create the table under the required database by fully qualifying it
e.g
create table adventureworks.dbo.abcde
( id int)
August 17, 2011 at 1:05 am
Since there is no time component maybe DATE is a better data type to use.
August 16, 2011 at 1:26 pm
do you have the same index in both STG and test, if so are both enabled. Are the statistics up to date ?
August 16, 2011 at 1:21 pm
Yes ,you can create a new table with a reference to the main table via a key column.
August 16, 2011 at 12:15 pm
Viewing 15 posts - 541 through 555 (of 961 total)