Viewing 15 posts - 9,901 through 9,915 (of 15,381 total)
Perry Whittle (11/30/2012)
SQL SERVER ROOKIE (11/30/2012)
Thank you guys,And how to look for tables in a DB lets say any table with the word "SHIPPING"Regards
SM
This
selectobject_name(object_id) AS TableName
from sys.columns
where object_name(object_id) like '%table...
November 30, 2012 at 12:53 pm
If you are using an autonumber you are going to have gaps. This is perfectly normal. Honestly, why does it matter if there are gaps?
November 30, 2012 at 12:50 pm
Backup and Restore is the fastest and most reliable way to do this imo. I am not sure you can even detach a 2005 db and attach it to a...
November 30, 2012 at 12:48 pm
Well since what you posted still doesn't really explain what you are working with I turned this into something usable.
Does your table look something like this?
;with cte(FullName) as
(
select 'Augusta, GA'...
November 30, 2012 at 12:36 pm
justin_post (11/30/2012)
Will that work even if there are multiple city names and not just Atlanta?
Do you mean you more than one City, ST in the column? Is it delimited at...
November 30, 2012 at 12:24 pm
Or an even simpler way given your original post.
;with cte(FullName) as
(
select 'Atlanta, GA'
)
select LEFT(FullName, charindex(',', FullName) - 1)
from cte
November 30, 2012 at 12:23 pm
With such a great job posting ddl and sample data I think you deserve a complete answer. I wish more people would make their posts so easy to work with.
declare...
November 30, 2012 at 12:20 pm
SQL SERVER ROOKIE (11/30/2012)
Thank you guys,And how to look for tables in a DB lets say any table with the word "SHIPPING"Regards
SM
select * from sys.tables
You should probably become more familiar...
November 30, 2012 at 10:35 am
valeryk2000 (11/29/2012)
... especially it this set belongs to a guy like you 🙂
:blush: Gosh thanks for the compliment. Sadly as I am getting older my eyes are getting worse and...
November 29, 2012 at 1:56 pm
I found my snippet that does this.
SELECT DATEADD(s, @EpochValue, '1970-01-01 00:00:00')
November 29, 2012 at 1:52 pm
What you need to do is look up the epoch to datetime conversion. A quick google search will find several examples for you.
November 29, 2012 at 1:49 pm
HARIANGEL (11/29/2012)
What is the impact if model db is crashed?
To understand the impact you have to know what model db is used for. If you understand that, this question will...
November 29, 2012 at 1:47 pm
sahmad43 (11/29/2012)
November 29, 2012 at 1:42 pm
srik.kotte (11/29/2012)
Thnaks for your reply. But I didn't get what that stored proc is doing and how it gonna fix my issue. Please explain.
It won't fix your issue. It was...
November 29, 2012 at 1:38 pm
bopeavy (11/29/2012)
November 29, 2012 at 12:44 pm
Viewing 15 posts - 9,901 through 9,915 (of 15,381 total)