Viewing 15 posts - 46 through 60 (of 330 total)
Which index will will Act First
April 13, 2011 at 3:45 am
All this depends on how huge your data is going to come every day and how you are going to maintain.Lowell has given a approximate or near by value.Keeping a...
April 12, 2011 at 8:55 am
arpit3613 (4/11/2011)
Hello Experts,How can we insert the value thrugh excel?
select * into tablename FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\testing.xls;HDR=YES', 'SELECT * FROM [Sheet1$]')
April 11, 2011 at 11:24 am
the starttime columns has only time (eg 10:32 AM)
I want to insert this value into table two where I want to insert only time and it should not take date.
Have...
April 11, 2011 at 11:16 am
Estimating the Size of a Database
http://msdn.microsoft.com/en-us/library/ms187445.aspx
Estimating the Size of a Table
April 11, 2011 at 10:58 am
dandenson (4/7/2011)
desired output
name, snums
'bill','1,2'
'tom','3,20'
'john','6'
Hi,
This is what you are looking for
go
declare @Temp table(name varchar(50),Snum varchar(50) )
insert @Temp values
('bill' , 1),
('bill' , 2),
('tom' , 3),
('tom' ,20),
('john' , 6)
SELECT DISTINCT name,SUBSTRING((SELECT...
April 7, 2011 at 3:52 pm
Hi ,
Have look on this
CREATE TABLE #MyTable (My int)
CREATE TABLE #MyTable1 (My int)
CREATE TABLE #MyTable2 (My int)
INSERT INTO #MyTable
SELECT 65 UNION ALL
SELECT 54 UNION ALL
SELECT 46
INSERT INTO #MyTable1
SELECT 46...
April 7, 2011 at 2:52 pm
Hi,
There might be other easy solutions also.
/*Your data in to this table*/
declare @Temp table ([Customer_Name] varchar(50),[Financial_Year] varchar(25), [No_of_Years] int,[Total_Value] int)
insert @Temp values ('Customer A', '2010/11' ,3, 30000)
insert @Temp values...
April 7, 2011 at 2:29 pm
Hi,
Some of the Tables and Views you need to check are
Select * from msdb..sysjobhistory
Select * from msdb..sysjobs
Select * from msdb..sysjobservers
Select * from msdb..sysjobs_view
Select * from msdb..sysjobactivity
Select * from msdb..sysjobsteps
Select *...
April 6, 2011 at 12:48 pm
Hi,
I think you may do in this way
declare @Email table (id int identity(1,1),email varchar(75),status bit)
insert into @Email
values
('Email1@Email.com',1),
('Email2@Email.com',0),
('Email3@Email.com',0),
('Email4@Email.com',1),
('Email5@Email.com',0),
('Email6@Email.com',1)
Select * from @Email where status=0 /*0- Acive 1-In-Active*/
declare...
April 6, 2011 at 11:51 am
Hi
Try this
Select * from sys.sysobjects where xtype='v' and id in(
Select id from sys.syscomments where text like '%where empid=%')
instead of V you can put P also to derive SP's...
April 6, 2011 at 9:55 am
GilaMonster (4/5/2011)
parthi-1705 (4/5/2011)
First off all Why? you need to avoid the user defined data type.Why?
I think you have missunderstand what i have asked.I asked him why you need to avoid...
April 6, 2011 at 9:28 am
Khades (4/5/2011)
Can you use a table valued input parameter to a stored procedure without having to create a user defined data type first?
First off all Why? you need to avoid...
April 5, 2011 at 4:14 pm
You have to use :
SET XACT_ABORT ON/OFF
opition to Distributed Queries from one server to another server.
Have a look on Distributed Queries and Distributed Transactions so that you will be getting...
April 5, 2011 at 3:38 pm
Sturev (4/2/2011)
Example:
I have a service table that contains details about a service appointment
Then...
April 5, 2011 at 3:28 pm
Viewing 15 posts - 46 through 60 (of 330 total)