|
More site info...
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.
|
|
|
|
|
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:
|
Top authors during last week:
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.
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.
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...
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!
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
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
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
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.
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.
|
|
|
|
Latest active threads on Microsoft SQL Server: Programming::
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.
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.
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 ...
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
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.
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.
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...
Started 1 day, 10 hours ago (2009-11-26 11:12:00)
by pwise
try Single quotes CODE bpbeltyp='B'
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 >...
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 ...
|
|
Hot threads for last week on 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 >...
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.
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.
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
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.
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
Started 1 week, 1 day ago (2009-11-19 17:17:00)
by markros
You used [ instead of ( e.g. select count ( *) from ...
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.
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.
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!
|
|