|
More site info...
Microsoft SQL Server | Forum profile
|
|
Forum profile page for Microsoft SQL Server on http://www.dbforums.com.
This report page is the aggregated overview from a single forum: Microsoft SQL Server, located on the Message Board at http://www.dbforums.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Microsoft SQL Server" on the Message Board at http://www.dbforums.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Microsoft SQL Server:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
94
|
324
|
883
|
|
Post:
|
359
|
1,107
|
2,736
|
|
|
Microsoft SQL Server Posting activity graph:
|
Top authors during last week:
user's latest post:
How to hold Database Name in a...
Published (2009-11-12 12:48:00)
You can't do this without dynamic SQL and a loop. I wouldn't use "USE". Instead I would do something like: Code: UPDATE dbo.TotalDatabase SET NoOfTable = (SELECT COUNT(*) FROM [databasename].sys.tables) WHERE DbName = [databasename] That is your base string - use REPLACE to substitute the placeholder ([databasename]) with the actual database name. I wouldn't do this in a cursor - dynamic cursor syntax is a ball...
user's latest post:
Can someone tell me if this...
Published (2009-11-13 22:04:00)
Quote: Originally Posted by Brett Kaiser, 15:50 WAIT TYour calling this from Access? Quote: Originally Posted by blindman, 15:51 Wait. You are doing this through MS Access? You are freakin' me out, man!
user's latest post:
Finding records from control
Published (2009-11-10 19:00:00)
Stuff between single quotes is treated as literal text. I doubt you have a username of "txtusername.text"! Create a sproc and pass txtusername.text as a parameter
user's latest post:
Archiving data - Page 2 - dBforums
Published (2009-11-12 01:27:00)
thank you for your kind concern mr.flump . my likeness for you have greatly blossomed .
user's latest post:
Difference between dates in one...
Published (2009-11-13 19:22:00)
Quote: Originally Posted by pootle flump A brief read of this suggests there is a nice solution or two in 2005 and 2008, and a nasty one in 2000. OP - please can you tell us the version of SQL Server? You care to share your solutions?
user's latest post:
Convert nested-select into...
Published (2009-11-14 19:47:00)
Quote: Originally Posted by knhcmp Why this did NOT yield x, y, z as in (I) and (II)? i'm guessing it was because of this -- a a b b c c
user's latest post:
declare the scalar variable
Published (2009-11-11 13:27:00)
Hi Brett, I am using SQL Server 2005, Designing Winform Application through VStudio 2008. I have usernames/passwords in sql table. I have the login part working where the user can login by validating against the username/password stored in the login table but i need to bring back the user's information in a grid view etc. on Form 2 based on their employeeid which is referenced in all other tables. Login Table Username Password Employeeid...
user's latest post:
select containing different servers
Published (2009-11-13 03:08:00)
Code: SELECT * FROM [server1].[Items].[dbo].[Properties], [server2].[Items].[SpecialProperties] where Properties.ID=SpecialProperties.ID I am trying to do a select across 2 tables that exist on different servers, that are linked via the network. The above does not work; 1. Should it work like this, i.e have I just made a spelling mistake etc.? 2. ...or am I trying to fit a whale into a mini? Thanks
|
|
|
|
Latest active threads on Microsoft SQL Server::
Started 1 day, 17 hours ago (2009-11-14 18:34:00)
by Brett Kaiser
How many products do you have?
Started 1 day, 12 hours ago (2009-11-14 23:38:00)
by Pat Phelan
Started 2 days, 16 hours ago (2009-11-13 20:00:00)
by Pat Phelan
What have you covered so far in class? I'd assume by this point in the class session that this would already be " old hat", so I'm having trouble understanding what is confusing you.
I'm trying to understand what your problem is so that I can help you learn. Give me a few clues and I can probably help!
-PatP
Started 2 days ago (2009-11-14 11:10:00)
by Pat Phelan
Code:
UPDATE #TempTotalTable
SET NoOfCol = #ColumnPerTable. NoOfCol
FROM #ColumnPerTable
WHERE #TempTotalTable.TBName = #ColumnPerTable.TBName
-PatP
Started 1 week, 4 days ago (2009-11-04 13:24:00)
by PMASchmed
DTS to SSIS ?
Unsupported SQL (i.e. old join syntax in where clause vs. ANSI )
"with" in hints
etc.
Started 2 days, 9 hours ago (2009-11-14 02:22:00)
by tatvasoftseo tatvasoftseo is offline Registered User
in our application that need to create some tables in tempdb. The user
(call it APP) is not sa. Everytime that the server need to be rebooted, the
db_owner role on tempdb for user APP disappear. So...
1. Is there any setting to ensure that the the db_owner role on tempdb for
user APP will remain after server reboot?
2. If not,
Is there any solustion to run a script at ...
|
|
Hot threads for last week on Microsoft SQL Server::
Started 6 days, 7 hours ago (2009-11-10 04:37:00)
by mishaalsy
"lot of data"
then why creating a separate table ? .
boolian condition (yes/no) or flag 1/0 is the best method for faster scan .
Started 3 days, 3 hours ago (2009-11-13 08:16:00)
by MartinFalch Registered User
Hi there,
I have a lot of daily series, with observations on each day. Now I wish to create new tables, containing the same data, but only the last observation of each month. Is there some way to select this ultimo date within SQL, so as to select the 31st when this is the last date, the 30st when this is the last date etc?
My code is quite simple, looks like this:
...
Started 5 days, 7 hours ago (2009-11-11 04:53:00)
by Wim
Can you give the logic behind each and every Diff, like you did for A 18 (24 - 6)? I have no idea where the 6 after 2009-11-06 comes from. Same with most of the Diff's of the B and C groups.
What is the Diff when you have two records in a group? Which record gets what value?
What is the Diff when you have more than two records in a group? Which record gets what value?
What is the Diff of...
Started 2 days, 23 hours ago (2009-11-13 12:31:00)
by blindman
How about posting your sql instead? For starters, you should not be using
Code:
CONVERT( VARCHAR(11), @StartDate, 120)
Use
Code:
dateadd(day, datediff(day, 0, @StartDate), 0)
instead (unless your date values are stored as strings, in which case you have a whole other set of problems...).
Started 1 week, 3 days ago (2009-11-06 10:32:00)
by Thrasymachus
common problem. pick your solution...
sql server comma separated values to table - Google Search
Started 4 days, 5 hours ago (2009-11-12 06:46:00)
by AndyH2009 Registered User
Hi All...
I'm in the process of migrating my Access DB to MS SQL. Now i'm at the point of testing my Classic ASP Application code and have come accross a problem pointing to 'datediff'.
Here is my Statement and the error. Can anyone advise please?
-------code--------
SELECT a.*, b.FirstName+' '+b.LastName AS FullName, c.OrderStatus
FROM (Orders AS a INNER JOIN Customers AS b ON a....
Started 2 days, 22 hours ago (2009-11-13 13:24:00)
by asyed01 asyed01 is offline Registered User
Hello experts,
Im trying to insert some values though stored procedure into one of my temporary table but having the following errors again and again.
Msg 8152, Level 16, State 2, Line 1
String or binary data would be truncated.
The statement has been terminated.
Msg 8152, Level 16, State 2, Line 1
String or binary data would be truncated.
The statement has been terminated....
Started 2 days, 22 hours ago (2009-11-13 13:59:00)
by blindman
I lack the patience for guessing games today. Post some actual code, please.
Started 6 days, 22 hours ago (2009-11-09 13:14:00)
by pootle flump
I can explain why 1 and 2 differ from 3 since they are semantically different. I can't explain why 1 and 2 differ.
A clue as to how they differ would have been nice but too much to ask I suppose.
Started 6 days, 21 hours ago (2009-11-09 14:40:00)
by Brett Kaiser
got ddl?
post that please
|
|