Viewing 15 posts - 8,026 through 8,040 (of 13,460 total)
what does this return?
SELECT
schema_name(6) As schemaName,
object_name(519060985) As Objectname,
'EXEC sp_changeobjectowner '''
+ QUOTENAME(schema_name(6))
+ '.'
+ QUOTENAME(object_name(519060985)) + ''''
AS PotentialCommand
Lowell
March 1, 2011 at 11:48 am
is your code a stored procedure which runs quickly when static values are tested in SSMS, but slow when it is called with parameters from the application?
That's a sign of...
Lowell
March 1, 2011 at 11:08 am
to get fixed length, you'll need to convert to CHAR datatypes, so they are padded with spaces.
something like this maybe?:
INSERT INTO Tran_file (id,RAW_data)
SELECT 2 as id,
'US1'+
CONVERT(CHAR(8), GETDATE(), 1)+
'1001'+
'1'+
'000'+
CAST(ORDACR# AS CHAR...
Lowell
March 1, 2011 at 8:21 am
extended properties are stored in a database; so to make any sense i guess you'd store instance information in master, right? that's where i'd add them;
this worked on my master...
Lowell
March 1, 2011 at 7:42 am
harsha.bhagat1 (3/1/2011)
But I think I am not being able to make clear what I actually want.
In simple terms I want to document the database into word...
Lowell
March 1, 2011 at 6:08 am
yes, i understood that...
what i was telling you is compared to what i would call a "normal" process, you are doing it backwards...you put the data in the database, and...
Lowell
March 1, 2011 at 6:03 am
In addition to what others have said...
db_owner is a role, so you could have lots of users as members of that role...and as previously stated, they can do anything to...
Lowell
March 1, 2011 at 5:57 am
additionally, both Enterprise Manager and SSMS GUIS's have the built in ability to add an extended property for ease of use: just go to teh table and select "Design",...
Lowell
March 1, 2011 at 5:48 am
actually, what a lot of people do is to put the data in the database itself by using extended properties...(sys.sp_addextendedproperty / fn_listextendedproperty)
you can put descriptions up to 255 chars in...
Lowell
March 1, 2011 at 5:41 am
there was a recent thread on teh same subject:
http://www.sqlservercentral.com/Forums/Topic1056364-324-1.aspx
a lot of people reported they lean towards a "don't ask don't tell" policy, so if they don't ask for your expertise...
Lowell
February 28, 2011 at 3:45 pm
Rich Yarger (2/28/2011)
Could it be that this is happening because the version of SQL Server is 2005 Express?
nope...something is specifically occurring...there's got to be something that is issuing the commands...
Lowell
February 28, 2011 at 3:42 pm
i made a simple csv with a bunch of the possible dateformats.
it looks like using convert with format 109 or 126 is probably best...it leaves the date and time alone...
Lowell
February 28, 2011 at 2:56 pm
i'm not sure what you mean by parent object...a trigger, for example, would have the parent_object_id in sys.objects, but i don't think a specific command would have any references to...
Lowell
February 28, 2011 at 2:04 pm
here's a quick example of a bunch of the formats available. sometimes you need to combine some of them togetehr to get exactly what you are after:
FormattedDate ...
Lowell
February 28, 2011 at 12:25 pm
ok i saw this image on derp.membase and had to switch avatars today. not my dog, but what a pic.

Lowell
February 28, 2011 at 11:13 am
Viewing 15 posts - 8,026 through 8,040 (of 13,460 total)