Viewing 15 posts - 181 through 195 (of 232 total)
i think below table design could be use.
Contact(ContactID, ContactFirstName, ContactLastName, ....)
PhoneType(PhoneTypeID, PhoneTypeDesc, ....)
ContactPhone(ContactID, PhoneTypeID, PhoneNumber, Active/Inactive)
Contact - Store all Contacts information
PhoneType - Store PhoneTypes E.g PersonalPhonenumber,
...
January 16, 2009 at 12:06 am
try this code hope this will help you...
declare @strCVS VARCHAR(500)
select @strCVS = coalesce(@strCVS + ',', '') + cast(object_id as varchar(10))
from sys.objects
select @strCVS
January 15, 2009 at 4:40 am
Need to know more about archiving. I have database its more than 1 database same schema for different clients. I have created Archive databases for each client according to...
January 13, 2009 at 1:05 am
select distinct object_name(object_id) as Table, rows
from sys.partitions where index_id >= 1
and object_name(object_id) not like 'sys%'
and rows > 100
January 13, 2009 at 12:42 am
there is another way which you can use..
1. Take the MAX(userID) before batch insert. this will give you the last UserID before batch insert
2. Perform batch insert.
3. Retrive those records...
January 13, 2009 at 12:23 am
Also verify whether index exists or not from below query...
SELECT * FROM sys.indexes WHERE name = 'PK__EventStage__46AF6B36'
January 13, 2009 at 12:10 am
the way you are inserting/ updating records is not feasible. it alway a good practice to have the length validation from Application side restrict the user to enter available space...
January 8, 2009 at 4:12 am
It very simple to call function with an stored proc. below is an example.
CREATE PROCEDURE [dbo].[uspGetSkuCode]
( @Sku VARCHAR(50) )
AS
BEGIN
SET NOCOUNT ON
SELECT [dbo].[FormattedSKU](@Sku)
END
you will get the value as a...
January 7, 2009 at 7:08 am
I hope you will get the better answer on BOL, instead everyone tell you in chunks. You can refer to New feature in SQL server 2005 in BOL.
December 4, 2008 at 6:40 am
justin you can use the below code this will help to avoid the hardcoded scopes.
IF OBJECT_ID('tempdb..#tmpData') IS NOT NULL
DROP TABLE #tmpData
CREATE TABLE #tmpData(NameVARCHAR(10),
TeamVARCHAR(2),
VolumeSMALLINT,
ScopeVARCHAR(100)
)
INSERT#tmpData
SELECT'brian', 'G1', 1, '0 to 100' UNION ALL
SELECT'randy',...
December 4, 2008 at 1:21 am
Kenney,
I appreciate your suggestion. thank you :).
October 10, 2008 at 2:53 am
Can u reply with error message and also with your machine config.
September 5, 2008 at 5:20 am
Viewing 15 posts - 181 through 195 (of 232 total)