Click here to Skip to main content
15,888,401 members
Home / Discussions / Database
   

Database

 
Questionproblem creating database role... Pin
rajkumar.33-Dec-08 22:33
rajkumar.33-Dec-08 22:33 
AnswerRe: problem creating database role... Pin
Wendelius4-Dec-08 3:54
mentorWendelius4-Dec-08 3:54 
QuestionTime out only the first time Pin
samerh3-Dec-08 21:02
samerh3-Dec-08 21:02 
AnswerRe: Time out only the first time Pin
Wendelius4-Dec-08 4:03
mentorWendelius4-Dec-08 4:03 
QuestionNeed to execute a query when postgres service starts Pin
krishnan.s3-Dec-08 20:45
krishnan.s3-Dec-08 20:45 
AnswerRe: Need to execute a query when postgres service starts Pin
Wendelius4-Dec-08 7:06
mentorWendelius4-Dec-08 7:06 
QuestionTo apply a search on every table in a database Pin
rahuladya3-Dec-08 19:49
rahuladya3-Dec-08 19:49 
AnswerRe: To apply a search on every table in a database Pin
Ashfield3-Dec-08 21:09
Ashfield3-Dec-08 21:09 
Assuming SQL Server 2005/2008 there is a built in command called sp_MSForEachTable

exec sp_MSForEachTable @command1 = "select col1 from ? where x = y"


Note the use of double quotes around the command. When the query runs it replaces the question mark with the table name. I have a feeling you made need single quotes around the question mark, but I don't have sql server on this pc to check.

Hopefully this will get you in the right direction

Bob
Ashfield Consultants Ltd

GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 6:29
rahuladya4-Dec-08 6:29 
GeneralRe: To apply a search on every table in a database Pin
Ashfield4-Dec-08 9:18
Ashfield4-Dec-08 9:18 
GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 20:55
rahuladya4-Dec-08 20:55 
GeneralRe: To apply a search on every table in a database Pin
Mycroft Holmes4-Dec-08 21:54
professionalMycroft Holmes4-Dec-08 21:54 
QuestionReporting Services and multiple connection strings Pin
gantww3-Dec-08 11:20
gantww3-Dec-08 11:20 
AnswerRe: Reporting Services and multiple connection strings Pin
moon_stick3-Dec-08 22:48
moon_stick3-Dec-08 22:48 
AnswerRe: Reporting Services and multiple connection strings Pin
Mycroft Holmes4-Dec-08 21:58
professionalMycroft Holmes4-Dec-08 21:58 
QuestionQuery Pin
CodingYoshi3-Dec-08 9:15
CodingYoshi3-Dec-08 9:15 
AnswerRe: Query Pin
Wendelius3-Dec-08 9:32
mentorWendelius3-Dec-08 9:32 
QuestionAccommodating an apostrophe in SQL... [modified] Pin
new_phoenix3-Dec-08 5:24
new_phoenix3-Dec-08 5:24 
AnswerRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 5:41
Jay Royall3-Dec-08 5:41 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:03
new_phoenix3-Dec-08 6:03 
GeneralRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 6:12
Jay Royall3-Dec-08 6:12 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:30
new_phoenix3-Dec-08 6:30 
AnswerRe: Accommodating an apostrophe in SQL... Pin
Wendelius3-Dec-08 6:51
mentorWendelius3-Dec-08 6:51 
QuestionMSSQL : getting data from few tables Pin
benjamin yap3-Dec-08 1:41
benjamin yap3-Dec-08 1:41 
AnswerRe: MSSQL : getting data from few tables Pin
Ben Fair3-Dec-08 3:49
Ben Fair3-Dec-08 3:49 

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.