Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Microsoft SQL Server: Programming | Forum profile

Forum profile page for Microsoft SQL Server: Programming on http://www.tek-tips.com. This report page is the aggregated overview from a single forum: Microsoft SQL Server: Programming, located on the Message Board at http://www.tek-tips.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: Programming" on the Message Board at http://www.tek-tips.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.

Site: Tek-Tips Forums - Microsoft SQL Server: Programming (site profile, domain info tek-tips.com)
Title: Microsoft SQL Server: Programming
Url: http://www.tek-tips.com/threadminder.cfm?pid=183
Users activity: 34 posts per thread
Forum activity: 91 active thread during last week
 

Posting activity on Microsoft SQL Server: Programming:

  Week Month 3 Months
Threads: 91 261 723
Post: 287 864 2,459
 

Microsoft SQL Server: Programming Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
markros
57
user's latest post:
Top(50) Per Provider
Published (2009-11-25 14:10:00)
Nope - it's the exactly same thing :) Only pretty colored :) Keep what you currently have.
bborissov
27
user's latest post:
convert temp var table to a...
Published (2009-11-25 14:18:00)
Check thread183-1580599: Dynamic crosstab assistance - SQL 2005 I think that is the same thing. Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
gmmastros
26
user's latest post:
Could I embed HTML tags into SQL ?
Published (2009-11-20 09:09:00)
You could do this: CODE Select Projects.ProjectName,        '<img src="./pics/' + projects.PictureName + '" /> ' As ImageSource Personally, I think it would be best to do this in your front end though.  I assume it's something like asp, asp.net, php, coldfusion, etc... I think it would be better to add the img tag...
djj55
10
user's latest post:
Replace sp_makewebtask in 2008
Published (2009-11-24 06:53:00)
Thanks for the forum.  I will look into this there.  I now have a new forum on my theadminder.   I have a lot to learn about 2008 including how to use SSIS. Thanks, djj The Lord is My Shepard (Psalm 23) - I need someone to lead me!
simian336
9
user's latest post:
convert temp var table to a...
Published (2009-11-24 17:07:00)
I do a smilar process but I concatinate fields in to a single field and report it from there. Like... attrid,  attrcomments 1222    reading, writing, petcare If that would help, here is an interesting article. http ://www.sql team.com/f orums/topi c.asp?TOPI C_ID=81254 Simi
R7Dave
8
user's latest post:
Convert Integer to Date
Published (2009-11-18 13:23:00)
Thank you markos - I went to 50 sites and thats the first one Ive seen with mm/dd/yy (everything but) CODE convert(varchar, cast(right('0'+cast(MOrigIncep as varchar(6)),6) as datetime),1) as 'Inception Date', Thanks again
AgentM
8
user's latest post:
using Declare in Stored Procedure
Published (2009-11-24 11:34:00)
Never mind got it. The error was a space in the var name in the Declare. Thank you
Jamfool
6
user's latest post:
change collation in a view
Published (2009-11-18 09:57:00)
Changing collaction can be done using COLLATE: [code] SELECT TABLE_NAME COLLATE Latin1_General_CI_AS, TABLE_NAME COLLATE Albanian_BIN FROM INFORMATION_SCHEMA.TABLES [code] preventing edits can easily be done by either limiting users permissions, depending on how your security model is implemented or by putting the database in read only mode.  
TheRogueWolf
6
user's latest post:
Show sum of values from 1 table...
Published (2009-11-19 05:03:00)
Thanks markros, that did the trick perfectly. Thanks again Jamfool, unfortunately I couldn't get your version to work but that's no doubt due to my beginner's SQL skills.
bboffin
6
user's latest post:
Querying against multiple values...
Published (2009-11-20 06:04:00)
Have you tried Right-Click and select 'Save Target As'?   Bob Boffin
 

Latest active threads on Microsoft SQL Server: Programming::

Tek-Tips Forums
Started 16 hours, 19 minutes ago (2009-11-27 05:27:00)  by bborissov
You can't return FIELD from a query, you can return variable: CODE CREATE PROCEDURE [dbo].[Countit] AS BEGIN SET NOCOUNT ON; DECLARE @CountOfID int SELECT @CountOfID = COUNT(CompanyDetailID) FROM mainCompanyDetail WHERE Deleted = 0 return @CountOfID END Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (3 posts)   Thread info: SELECT statement returning integer value Size: 639 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: SELECT statement returning integer value :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 13 hours ago (2009-11-26 08:39:00)  by bborissov
Pleas, post some example data for all tables and what you want as a result. Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (12 posts)   Thread info: Statement to show value from joined tables Size: 208 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Statement to show value from joined tables :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 21 hours, 51 minutes ago (2009-11-26 23:55:00)  by JoeAtWork
You definitely don't want one database connection for each user. If I recall my ASP.NET programming (which I haven't done in a while), it would be best to create an SQL login for the web service application - that way the connection string is always identical. I believe that ADO.NET will cache connections if the connection strings are identical - and because of that you would simply open and ...
Thread:  Show this thread (2 posts)   Thread info: Multipule or single user? Size: 632 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Multipule or single user? :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 1 hour ago (2009-11-26 19:57:00)  by markros
Please see this example How to insert information into multiple related tables and return ID using SQLDataSource
Thread:  Show this thread (2 posts)   Thread info: Insert into multiple Tables Size: 318 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Insert into multiple Tables :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 9 hours ago (2009-11-26 11:49:00)  by bborissov
CODE SELECT Client, SUM(Trans) AS Trans FROM Clients WHERE DATEDIFF(hh, TransactionDate, GETDATE()) < 49 GROUP BY Client HAVING SUM(Trans) > = 400 NOT TESTED! Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (6 posts)   Thread info: Sub Query Size: 376 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Sub Query :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 5 hours ago (2009-11-26 16:00:00)  by bborissov
Table has End Date, but did the table has START date? If so, then just pass them as parameters to the function: CODE SELECT ...., dbo.GetBusinessDays(StartDateColumn, EndDateColumn) AS WorkingDays FROM TheTable Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (3 posts)   Thread info: Apply an sql function to update an sql table Size: 475 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Apply an sql function to update an sql table :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 2 days, 10 hours ago (2009-11-25 11:20:00)  by bborissov
You can not use table variable, because it is not visible in the dynamic SQL. Try this: CODE create table #MyID( corekey numeric (13), coreid char (10), coretype char (10), corecomm varchar (4000), Id int ) INSERT INTO @ID (corekey,coreid,corecomm, Id) SELECT corekey,coreid,corecomm, , ROW_NUMBER() OVER ( PARTITION BY coreid ORDER BY corecomm) FROM dbo.core_table...
Thread:  Show this thread (4 posts)   Thread info: Dynamic crosstab assistance - SQL 2005 Size: 3,467 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Dynamic crosstab assistance - SQL 2005 :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 10 hours ago (2009-11-26 11:12:00)  by pwise
try Single quotes CODE bpbeltyp='B'
Thread:  Show this thread (3 posts)   Thread info: OPENROWSET Size: 180 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: OPENROWSET :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 3 days, 3 hours ago (2009-11-24 18:12:00)  by markros
CODE ;with cte_ProvidersSummary as (select sum(c.pat_amt) as PatBal, replace(ltrim(replace(pat.med_rec_nbr, '0', ' ')), ' ', '0') as Chart#, lp.desc_30 as Provider from charges c inner join lrdc_providers lp on lp.provider_id = c.rendering_id inner join patient pat on pat.person_id = c.person_id inner join person per on per.person_id = pat.person_id where c.pat_amt >...
Thread:  Show this thread (16 posts)   Thread info: Top(50) Per Provider Size: 897 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Top(50) Per Provider :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 2 days ago (2009-11-18 05:28:00)  by Jamfool
You will need to do a LEFT JOIN between your supplier table and the orderdetail table to enable you to get all the records from the supplier table even if they havent got any orders against them. Example of LEFT JOIN syntax: http://www.w3schools.com/sql/sql_join_left.asp You will then need to as you said: 'orderqty' * 'unitcost' to get a line total finally you will need to look at GROUP ...
Thread:  Show this thread (15 posts)   Thread info: Show sum of values from 1 table with data from 2 other tables Size: 713 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Show sum of values from 1 table with data from 2 other tables :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
 

Hot threads for last week on Microsoft SQL Server: Programming::

Microsoft SQL Server: Programming
Started 3 days, 3 hours ago (2009-11-24 18:12:00)  by markros
CODE ;with cte_ProvidersSummary as (select sum(c.pat_amt) as PatBal, replace(ltrim(replace(pat.med_rec_nbr, '0', ' ')), ' ', '0') as Chart#, lp.desc_30 as Provider from charges c inner join lrdc_providers lp on lp.provider_id = c.rendering_id inner join patient pat on pat.person_id = c.person_id inner join person per on per.person_id = pat.person_id where c.pat_amt >...
Thread:  Show this thread (16 posts)   Thread info: Top(50) Per Provider Size: 897 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Top(50) Per Provider :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 1 day, 13 hours ago (2009-11-26 08:39:00)  by bborissov
Pleas, post some example data for all tables and what you want as a result. Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (12 posts)   Thread info: Statement to show value from joined tables Size: 208 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Statement to show value from joined tables :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 1 week, 2 days ago (2009-11-18 14:56:00)  by markros
CODE SELECT I.ItemID FROM ITEM I inner join ItemDetails ID on I.ItemID = ID.ItemID where (ID.ItemDescription like ' %sara%' or ID.ItemDescription like '%davidson%') group by I.ItemID having count(distinct(ID.ItemDetailsID)) > =2 One of the possible solutions.
Thread:  Show this thread (12 posts)   Thread info: Querying against multiple values in associated table Size: 385 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Querying against multiple values in associated table :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 1 week ago (2009-11-20 08:08:00)  by r937
have you tried the CREATE TABLE statement? r937.com | rudy.ca Buy my new book Simply SQL from Amazon
Thread:  Show this thread (9 posts)   Thread info: Table with date..? Size: 399 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Table with date..? :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 2 days, 12 hours ago (2009-11-25 08:55:00)  by bborissov
What is the difference? Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (9 posts)   Thread info: help with "FOR XML RAW, ELEMENTS" clause - SQL 2k5 Size: 156 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: help with "FOR XML RAW, ELEMENTS" clause - SQL 2k5 :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 3 days, 9 hours ago (2009-11-24 12:43:00)  by pwise
Select attrid, attrype , case when attrcomm='reading' then attrcomm else '' end attrcomm1 , case when attrcomm='automobiles' then attrcomm else '' end attrcomm2 from @AttrHobby
Thread:  Show this thread (8 posts)   Thread info: convert temp var table to a crosstab in sql2005 Size: 250 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: convert temp var table to a crosstab in sql2005 :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 1 week, 1 day ago (2009-11-19 17:17:00)  by markros
You used [ instead of ( e.g. select count ( *) from ...
Thread:  Show this thread (6 posts)   Thread info: Simple count * issue Size: 162 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Simple count * issue :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 3 days, 10 hours ago (2009-11-24 11:08:00)  by bborissov
The error is not on DECLARE it in query row: This: CODE SELECT col1, @TOTALPEOPLE, @TOTALMENFROM TABLE1 should be CODE SELECT col1, @TOTALPEOPLE, @TOTALMENFROM FROM TABLE1 Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (6 posts)   Thread info: using Declare in Stored Procedure Size: 538 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: using Declare in Stored Procedure :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
RE: Sub Query - 6 new posts
Started 1 day, 9 hours ago (2009-11-26 11:49:00)  by bborissov
CODE SELECT Client, SUM(Trans) AS Trans FROM Clients WHERE DATEDIFF(hh, TransactionDate, GETDATE()) < 49 GROUP BY Client HAVING SUM(Trans) > = 400 NOT TESTED! Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Thread:  Show this thread (6 posts)   Thread info: Sub Query Size: 376 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Sub Query :: Microsoft SQL Server: Programming :: Tek-Tips Forums"
Microsoft SQL Server: Programming
Started 1 week, 2 days ago (2009-11-18 14:24:00)  by djj55
Have you tried creating a (temporary) table of values 1 - 31? Or possibly create on the fly for number of days in the month - see FAQ for finding last day of month. Then join to your query in a way that all values of the "day" table are used (right join). Just thoughts. Good Luck, djj The Lord is My Shepard (Psalm 23) - I need someone to lead me!
Thread:  Show this thread (7 posts)   Thread info: Need View To Return Rows For ALL Calendar Dates Size: 481 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Need View To Return Rows For ALL Calendar Dates :: Microsoft SQL Server: Programming :: Tek-Tips Forums"