Click here to Skip to main content
15,907,392 members
Home / Discussions / Database
   

Database

 
GeneralReturn parameters in Strored procedures Pin
Abbas_Riazi28-Oct-04 0:47
professionalAbbas_Riazi28-Oct-04 0:47 
GeneralRe: Return parameters in Strored procedures Pin
Mike Dimmick28-Oct-04 2:07
Mike Dimmick28-Oct-04 2:07 
GeneralRe: Return parameters in Strored procedures Pin
cnet20083-Nov-04 15:28
cnet20083-Nov-04 15:28 
GeneralRetreival Of Data Pin
benito198127-Oct-04 14:07
benito198127-Oct-04 14:07 
GeneralRe: Retreival Of Data Pin
Christian Graus27-Oct-04 14:17
protectorChristian Graus27-Oct-04 14:17 
GeneralRe: Retreival Of Data Pin
benito198127-Oct-04 14:28
benito198127-Oct-04 14:28 
GeneralRe: Retreival Of Data Pin
Christian Graus27-Oct-04 14:55
protectorChristian Graus27-Oct-04 14:55 
GeneralSQL Server metadata again Pin
Anonymous26-Oct-04 22:41
Anonymous26-Oct-04 22:41 
I have started working on a project where I will collect all metadata from a specific sql server database. I have got so far that I can collect the names of all tables and the names and datatypes of all columns in the tables.
Now I need to check what column is set as the primary key (if any) in each table. This has caused me some troubles. In the sysobjects table there are rows for every primary key. The look something like this: PK__Customers__78B3EFCA. Here PK is the name of the column and Customers is the name of the table. There must be a better way to control the name of the primary key column than to check the string above.

The other problem is also about the primary key. Often the primary key is set to be autonumbered. How can I control this? In a table I created recently I created this T-SQL script:

CREATE TABLE Accounts
(
AccountNr int PRIMARY KEY IDENTITY(100001, 1),
OwnerFK int,
Amount float
)

Is it possible to get all that information about the primary key?
GeneralRe: SQL Server metadata again Pin
Michael Potter27-Oct-04 11:35
Michael Potter27-Oct-04 11:35 
GeneralTrashed MSDE Instance Pin
Blake V. Miller26-Oct-04 19:19
Blake V. Miller26-Oct-04 19:19 
QuestionHow to use IDBConnection Pin
Alomgir Miah26-Oct-04 10:21
Alomgir Miah26-Oct-04 10:21 
GeneralWant to use OleDbCommandBuilder with IDbDataAdapter Pin
Alomgir Miah26-Oct-04 10:06
Alomgir Miah26-Oct-04 10:06 
GeneralRe: Want to use OleDbCommandBuilder with IDbDataAdapter Pin
Colin Angus Mackay26-Oct-04 22:45
Colin Angus Mackay26-Oct-04 22:45 
General"Network " access w/ out a network Pin
...---...26-Oct-04 6:43
...---...26-Oct-04 6:43 
GeneralRe: "Network " access w/ out a network Pin
Alomgir Miah26-Oct-04 10:15
Alomgir Miah26-Oct-04 10:15 
GeneralAdding data to Ole Db database, how do i... Pin
fortyonejb26-Oct-04 5:09
fortyonejb26-Oct-04 5:09 
GeneralRe: Adding data to Ole Db database, how do i... Pin
Anonymous27-Oct-04 17:50
Anonymous27-Oct-04 17:50 
QuestionHow to call overloaded stored procedure? Pin
grinder25-Oct-04 22:28
grinder25-Oct-04 22:28 
GeneralVerbose MSDE Setup Log File Pin
Blake V. Miller25-Oct-04 19:58
Blake V. Miller25-Oct-04 19:58 
GeneralCopy tables between 2 SQL Servers Pin
tgprakash25-Oct-04 2:48
tgprakash25-Oct-04 2:48 
GeneralRe: Copy tables between 2 SQL Servers Pin
Alomgir Miah26-Oct-04 10:38
Alomgir Miah26-Oct-04 10:38 
GeneralConnection String Pin
Marwa Bahaa25-Oct-04 1:06
Marwa Bahaa25-Oct-04 1:06 
GeneralRe: Connection String Pin
Michael Potter25-Oct-04 4:57
Michael Potter25-Oct-04 4:57 
GeneralRe: Connection String Pin
BlackDice28-Oct-04 10:43
BlackDice28-Oct-04 10:43 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.