From fhtapia at gmail.com Thu Feb 9 11:17:45 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 9 Feb 2012 09:17:45 -0800 Subject: [dba-SQLServer] sorting by priority then by date? Message-ID: I have a non-access/vb question but more of a logic question... in the current reporting tool we are using at work I have a requirement to sort a report by priority then by date... Priority - Date 01 - 20120115 01 - 20120131 01 - 20120201 ------------------------this is where the logic switches to sort by date asc 99 - 20110101 99 - 20110714 99 - 20110815 02 - 20111220 07 - 20120116 90 - 20120201 05 - 20120205 I know it's two queries and in SQL I can create a union query that gives me what I want, but I am using a different tool and I think the easiest for that tool is to create a combo unit of priority and date, the result would be a KEY/DATE combo that would sort in the manner described above... -Francisco http://bit.ly/sqlthis | Tsql and More... From Gustav at cactus.dk Thu Feb 9 11:32:43 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2012 18:32:43 +0100 Subject: [dba-SQLServer] sorting by priority then by date? Message-ID: Hi Francisco You could order by first Abs(Priority = "01") DESC then by the date string. /gustav >>> fhtapia at gmail.com 09-02-2012 18:17 >>> I have a non-access/vb question but more of a logic question... in the current reporting tool we are using at work I have a requirement to sort a report by priority then by date... Priority - Date 01 - 20120115 01 - 20120131 01 - 20120201 ------------------------this is where the logic switches to sort by date asc 99 - 20110101 99 - 20110714 99 - 20110815 02 - 20111220 07 - 20120116 90 - 20120201 05 - 20120205 I know it's two queries and in SQL I can create a union query that gives me what I want, but I am using a different tool and I think the easiest for that tool is to create a combo unit of priority and date, the result would be a KEY/DATE combo that would sort in the manner described above... -Francisco http://bit.ly/sqlthis | Tsql and More... From fhtapia at gmail.com Thu Feb 9 12:26:54 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 9 Feb 2012 10:26:54 -0800 Subject: [dba-SQLServer] sorting by priority then by date? In-Reply-To: References: Message-ID: Thanks Gustav, because I'm sorting in a 3rd party reporting system I won't be able to sort in that manner, but I did discover that I can create a formula field where I pair off the priority with the date ex: 01-20120209 and sort that way where if the field is priority 01 I keep that value, otherwise I replace it with a generic 99-20120209 and that sorts just as expected, I guess I just needed a bit of time to think and write it out... Thanks gang! -Francisco http://bit.ly/sqlthis | Tsql and More... On Thu, Feb 9, 2012 at 09:32, Gustav Brock wrote: > Hi Francisco > > You could order by first > Abs(Priority = "01") DESC > then by the date string. > > /gustav > > >>> fhtapia at gmail.com 09-02-2012 18:17 >>> > I have a non-access/vb question but more of a logic question... in the > current reporting tool we are using at work I have a requirement to sort a > report by priority then by date... > > Priority - Date > 01 - 20120115 > 01 - 20120131 > 01 - 20120201 > ------------------------this is where the logic switches to sort by date > asc > 99 - 20110101 > 99 - 20110714 > 99 - 20110815 > 02 - 20111220 > 07 - 20120116 > 90 - 20120201 > 05 - 20120205 > > > I know it's two queries and in SQL I can create a union query that gives me > what I want, but I am using a different tool and I think the easiest for > that tool is to create a combo unit of priority and date, the result would > be a KEY/DATE combo that would sort in the manner described above... > > > > > > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From marklbreen at gmail.com Thu Feb 9 13:59:25 2012 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 9 Feb 2012 19:59:25 +0000 Subject: [dba-SQLServer] sorting by priority then by date? In-Reply-To: References: Message-ID: Hi Francisco, I see that you have it working, I sometimes like to use CASE in these situations also, as I was reading your initial email, I was imagining a Order by Case when col between 90 and 99 then 1 when between 1 and 89 then 2 end and then concat on the date value. Anyway, glad you cleared it up by expressing it to the group. Mark On 9 February 2012 18:26, Francisco Tapia wrote: > Thanks Gustav, because I'm sorting in a 3rd party reporting system I won't > be able to sort in that manner, but I did discover that I can create a > formula field where I pair off the priority with the date ex: 01-20120209 > and sort that way where if the field is priority 01 I keep that value, > otherwise I replace it with a generic 99-20120209 and that sorts just as > expected, I guess I just needed a bit of time to think and write it out... > > > Thanks gang! > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > > > > > On Thu, Feb 9, 2012 at 09:32, Gustav Brock wrote: > > > Hi Francisco > > > > You could order by first > > Abs(Priority = "01") DESC > > then by the date string. > > > > /gustav > > > > >>> fhtapia at gmail.com 09-02-2012 18:17 >>> > > I have a non-access/vb question but more of a logic question... in the > > current reporting tool we are using at work I have a requirement to sort > a > > report by priority then by date... > > > > Priority - Date > > 01 - 20120115 > > 01 - 20120131 > > 01 - 20120201 > > ------------------------this is where the logic switches to sort by date > > asc > > 99 - 20110101 > > 99 - 20110714 > > 99 - 20110815 > > 02 - 20111220 > > 07 - 20120116 > > 90 - 20120201 > > 05 - 20120205 > > > > > > I know it's two queries and in SQL I can create a union query that gives > me > > what I want, but I am using a different tool and I think the easiest for > > that tool is to create a combo unit of priority and date, the result > would > > be a KEY/DATE combo that would sort in the manner described above... > > > > > > > > > > > > -Francisco > > http://bit.ly/sqlthis | Tsql and More... > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From rls at WeBeDb.com Thu Feb 9 14:16:38 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Thu, 09 Feb 2012 14:16:38 -0600 Subject: [dba-SQLServer] Adding a field to all user tables In-Reply-To: References: Message-ID: Totally true. I just did it as an SP in case someone else needed it. They could copy and paste. At 02:00 PM 2/9/2012, you wrote: >Date: Mon, 30 Jan 2012 08:20:40 -0800 >From: Francisco Tapia >To: Discussion concerning MS SQL Server > >Subject: Re: [dba-SQLServer] Adding a field to all user tables >Message-ID: > >Content-Type: text/plain; charset=ISO-8859-1 > >out of curiosity would you really make this a sproc? I think more of a >maintenance architecture script (again this is nitpicking) but I gather >that once you've added your timestamps to all your tables, going forward >you'd automatically do that to all new tables created, right? > >in the case of a broken design, where some tables have the timestamps, and >many do not you'd probably want to skip the timestamped tables. > >how about a little mod like: > >SELECT t.name AS TableName >-- ,sc.name AS SchemaName, >-- c.name AS ColumnName, >-- types.name AS TypeName, >-- st.name AS TypeSchemaName, >-- t.type AS type >FROM sys.all_columns c INNER JOIN sys.all_objects t WITH (NOLOCK) ON >c.object_id=t.object_id >LEFT JOIN sys.schemas sc WITH (NOLOCK) ON t.schema_id=sc.schema_id >LEFT JOIN sys.types types WITH (NOLOCK) ON c.user_type_id=types.user_type_id >LEFT JOIN sys.schemas st WITH (NOLOCK) ON st.schema_id=types.schema_id >WHERE t.type IN ('U') >AND types.NAME <> 'timestamp' >GROUP BY t.NAME >ORDER BY t.NAME > >instead of >SELECT name > FROM sysobjects > WHERE [TYPE] = 'U' > ORDER BY name > >if you plan on keeping the design with a managed script so you can >automatically come back and re-add timestamps on any table you may have >forgotten, you can replace the previous cursor select with this modified >one, so that you only find the tables without timestamps already. > >-Francisco >http://bit.ly/sqlthis | Tsql and More... > > > > > >On Sat, Jan 28, 2012 at 00:37, Arthur Fuller wrote: > > > I'll give you this one, for sure! It's guaranteed to be a smallish cursor, > > even in a large-ish database. Maybe 600 tables in the largest db I ever > > worked on! And as cursors go, that's not large. That said, I personally > > would have gone with a ForEach in SMO, but that's nit-picking. Well done! > > > > P.S. > > I also like your formatting conventions. > > > > On Fri, Jan 27, 2012 at 12:54 PM, Robert Stewart wrote: > > > > > For whatever reason, my original post of this never seems to appear on > > the > > > results from the list. > > > > > > While I do not advocate using cursors 99% of the time, there are times > > > that they are what you should use. > > > This will make the code easier to read, and it will work smooth. > > > > > > CREATE PROCEDURE dbo.usp_AddTimestamp > > > AS > > > BEGIN > > > SET NOCOUNT ON; > > > DECLARE > > > @TableName VARCHAR( 128 ) > > > , @Sql NVARCHAR( 4000 ) > > > > > > DECLARE curTableList CURSOR > > > FOR SELECT name > > > FROM sysobjects > > > WHERE [TYPE] = 'U' > > > ORDER BY name > > > > > > OPEN curTableList > > > > > > FETCH next FROM curTableList INTO @TableName > > > > > > WHILE @@FETCH_STATUS = 0 > > > BEGIN > > > SET @Sql = N'ALTER TABLE dbo.' + @TableName + ' ADD Timestamp' > > > > > > EXEC sp_executesql @Sql > > > > > > FETCH next FROM curTableList INTO @TableName > > > END > > > > > > CLOSE curTableList > > > DEALLOCATE curTableList > > > END > > > GO-- > > > > Arthur > > Cell: 647.710.1314 > > > > Prediction is difficult, especially of the future. > > -- Niels Bohr > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com From erbachs at gmail.com Thu Feb 9 19:14:39 2012 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 9 Feb 2012 19:14:39 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal Message-ID: Dear Group, Does anyone create ASP.NET/SQL Server applications that generate reports WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm converting an Access application to an ASP.NET app with SQL Server back end and I don't think I'll be able to persuade the client to buy either. Have you translated Access reports to the web WITHOUT SSRS or Crystal? -- Regards, Steve Erbach Neenah, WI From stuart at lexacorp.com.pg Thu Feb 9 19:38:13 2012 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Feb 2012 11:38:13 +1000 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: Message-ID: <4F347505.26253.13E82276@stuart.lexacorp.com.pg> I generate a lot of web pages from Access/SQL etc data. I simply build the output page with strings. I find it gives me much better control over the result. Here's a typical function: Function CreateWebPage(PageName) As Boolean Dim rs As DAO.Recordset Dim rs2 As DAO.Recordset Dim strFile As String Dim strtemp As String Dim strPagename As String Dim lngGalleryCount As Long Dim ff As Long Dim ff2 As Long strFile = TempDir() & PageName ff = FreeFile Open strFile For Output As #ff ff2 = FreeFile Open BEDir() & "\HeaderTemplate.txt" For Input As #ff2 Do While Not EOF(ff2) Line Input #ff2, strtemp If InStr(strtemp, "HEADLINEGOESHERE") > 0 Then strtemp = Replace(strtemp, "HEADLINEGOESHERE", DLookup("WebPageheadline", "tblWebPages", "WebPageName = '" & PageName & "'")) End If If InStr(strtemp, "BYLINEGOESHERE") > 0 Then strtemp = Replace(strtemp, "BYLINEGOESHERE", DLookup("WebPageByline", "tblWebPages", "WebPageName = '" & PageName & "'")) End If Print #ff, strtemp Loop Close #ff2 If DCount("*", "qryWeblisting", "webpage = '" & PageName & "'") = 0 Then Print #ff, "THERE ARE CURRENTLY NO PROPERTIES IN THIS CATEGORY" Else Set rs = CurrentDb.OpenRecordset("select * from qryWebListing where WebPage = '" & PageName & "';") Print #ff, "" lngGalleryCount = 0 While Not rs.EOF Print #ff, "" If rs!Thumb > "" Then Createthumb rs!PropertyNumber, rs!Photo CreateWebPic rs!PropertyNumber, rs!Photo lngGalleryCount = lngGalleryCount + 1 Print #ff, "" End If Print #ff, "" Print #ff, "" Print #ff, "" rs.MoveNext Wend rs.Close Print #ff, "
" & rs!LocnName & "
" Print #ff, "
" Print #ff, "" Print #ff, "" Print #ff, "
Click for Details
" Print #ff, "
" & rs!Description & "
" 'Get additional photos Set rs2 = CurrentDb.OpenRecordset("select * from qryWebPics where Primary = False and Property_PK = " & rs!Property_PK) If Not rs2.EOF Then Print #ff, " " End If Print #ff, "
" Else Print #ff, "
" & rs!LocnName & _ & "

" & rs!PropertyCategory & rs!PropertyType & Format$(rs!PropertyNumber, "0000") & " - " & rs!Headline & "

" & rs!ShortDescr & "

" & rs!DisplayPrice & "

Download Brochure
" 'End Body End If 'Footer Template Open BEDir() & "\FooterTemplate.txt" For Input As #ff2 Do While Not EOF(2) Line Input #ff2, strtemp Print #ff, strtemp Loop Close #ff2 Close #ff 'Publish FTPPut DLookup("BaseDir", "usysweb"), strFile End Function On 9 Feb 2012 at 19:14, Steve Erbach wrote: > Dear Group, > > Does anyone create ASP.NET/SQL Server applications that generate reports > WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm > converting an Access application to an ASP.NET app with SQL Server back end > and I don't think I'll be able to persuade the client to buy either. > > Have you translated Access reports to the web WITHOUT SSRS or Crystal? > > -- > Regards, > > Steve Erbach > Neenah, WI > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From Gustav at cactus.dk Fri Feb 10 01:44:01 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2012 08:44:01 +0100 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal Message-ID: Hi Steve Did you peruse our Northwind.NET project? Reports were created with the native report designer of Visual Studio at zero cost: http://northwind.codeplex.com Join us and Arthur the newbie at dba-vb. /gustav >>> erbachs at gmail.com 10-02-2012 02:14 >>> Dear Group, Does anyone create ASP.NET/SQL Server applications that generate reports WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm converting an Access application to an ASP.NET app with SQL Server back end and I don't think I'll be able to persuade the client to buy either. Have you translated Access reports to the web WITHOUT SSRS or Crystal? -- Regards, Steve Erbach Neenah, WI From erbachs at gmail.com Fri Feb 10 09:06:44 2012 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 10 Feb 2012 09:06:44 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: <4F347505.26253.13E82276@stuart.lexacorp.com.pg> References: <4F347505.26253.13E82276@stuart.lexacorp.com.pg> Message-ID: Stuart, I've done similar stuff with SQL Server code to generate a dynamic web page. I was hoping for something a bit more packaged. You're right, there's more control your way, but... I'm going to download the NorthWind.NET project and compare its report generation parts to what you posted, though. Thank you! Regards, Steve Erbach Neenah, WI On Thu, Feb 9, 2012 at 7:38 PM, Stuart McLachlan wrote: > I generate a lot of web pages from Access/SQL etc data. I simply build > the output page with > strings. I find it gives me much better control over the result. > > Here's a typical function: > > Function CreateWebPage(PageName) As Boolean > Dim rs As DAO.Recordset > Dim rs2 As DAO.Recordset > Dim strFile As String > Dim strtemp As String > Dim strPagename As String > Dim lngGalleryCount As Long > Dim ff As Long > Dim ff2 As Long > > strFile = TempDir() & PageName > > ff = FreeFile > > Open strFile For Output As #ff > ff2 = FreeFile > Open BEDir() & "\HeaderTemplate.txt" For Input As #ff2 > Do While Not EOF(ff2) > Line Input #ff2, strtemp > If InStr(strtemp, "HEADLINEGOESHERE") > 0 Then > strtemp = Replace(strtemp, "HEADLINEGOESHERE", > DLookup("WebPageheadline", "tblWebPages", "WebPageName = '" & PageName & > "'")) > End If > From erbachs at gmail.com Fri Feb 10 09:07:21 2012 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 10 Feb 2012 09:07:21 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: Message-ID: Gustav, I think I will! But I won't leave my cheese to sour! Thank you! Steve Erbach Neenah, WI On Fri, Feb 10, 2012 at 1:44 AM, Gustav Brock wrote: > Hi Steve > > Did you peruse our Northwind.NET project? Reports were created with the > native report designer of Visual Studio at zero cost: > > http://northwind.codeplex.com > > Join us and Arthur the newbie at dba-vb. > > /gustav > > > >>> erbachs at gmail.com 10-02-2012 02:14 >>> > Dear Group, > > Does anyone create ASP.NET/SQL Server applications that generate reports > WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm > converting an Access application to an ASP.NET app with SQL Server back > end > and I don't think I'll be able to persuade the client to buy either. > > Have you translated Access reports to the web WITHOUT SSRS or Crystal? > > -- > Regards, > > Steve Erbach > Neenah, WI > > > From jeff.developer at gmail.com Tue Feb 14 10:44:39 2012 From: jeff.developer at gmail.com (Jeff B) Date: Tue, 14 Feb 2012 10:44:39 -0600 Subject: [dba-SQLServer] [Cross Posted to AccessD, SQL, Tech, and VB Lists] Pervasive SQL Message-ID: <004501cceb37$f32ccd30$d9866790$@gmail.com> Morning all! Sorry for the major cross post, but I am desperately looking for someone that is extremely knowledgeable in Pervasive SQL or Timberline Office and has a working copy of Pervasive SQL Version 8. We are trying to phase out Timberline, but our accounting data is still stored in PSQL. I need to find someone that can take a copy of our data files and export to either excel or SQL Server (preferably SQL Server 2008). This is just a one-time thing (I hope) and would be doing it myself, except our Timberline install has failed and we are still trying to rebuild it. Anyone willing to try and help please send an email to: jbarrows at alertservice.com. Please include an hourly cost/price so I can give the Boss some idea of what it will cost. Thanks in advance! Jeff Barrows MCP, MCAD, MCSD ? Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com From fuller.artful at gmail.com Tue Feb 14 20:52:28 2012 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 14 Feb 2012 21:52:28 -0500 Subject: [dba-SQLServer] SSRS 2008R2 Message-ID: I have just done the basic R2 installation, but I just read a piece ( http://www.sqlservercentral.com/articles/SQL+Server+2008/74856/ ) that says that the only OSs upon which I can install SSRS SQL 2008 R2 are: *Server operating systems include:* - Windows Server 2003. - Windows Small Business Server 2003. - Windows 2000 Server. *Workstation operating systems include:* - Windows XP Professional. - Windows 2000 Workstation. Is this true? What about Win7 Ultimate? No dice? Seems shocking to say the least. Maybe this article is stale? -- Arthur Cell: 647.710.1314 Prediction is difficult, especially of the future. -- Niels Bohr From df.waters at comcast.net Tue Feb 14 21:05:18 2012 From: df.waters at comcast.net (Dan Waters) Date: Tue, 14 Feb 2012 21:05:18 -0600 Subject: [dba-SQLServer] SSRS 2008R2 In-Reply-To: References: Message-ID: <000801cceb8e$a6148db0$f23da910$@comcast.net> Hi Art, I didn't read the article but it is wrong. I'm using W7 Pro with SQL Server Express 2008 R2. R2 is the latest version - it will work on all the latest OS's. Dan -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, February 14, 2012 8:52 PM To: Discussion concerning MS SQL Server Subject: [dba-SQLServer] SSRS 2008R2 I have just done the basic R2 installation, but I just read a piece ( http://www.sqlservercentral.com/articles/SQL+Server+2008/74856/ ) that says that the only OSs upon which I can install SSRS SQL 2008 R2 are: *Server operating systems include:* - Windows Server 2003. - Windows Small Business Server 2003. - Windows 2000 Server. *Workstation operating systems include:* - Windows XP Professional. - Windows 2000 Workstation. Is this true? What about Win7 Ultimate? No dice? Seems shocking to say the least. Maybe this article is stale? -- Arthur Cell: 647.710.1314 Prediction is difficult, especially of the future. -- Niels Bohr _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From dbdoug at gmail.com Tue Feb 14 21:51:04 2012 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 14 Feb 2012 19:51:04 -0800 Subject: [dba-SQLServer] SSRS 2008R2 In-Reply-To: <000801cceb8e$a6148db0$f23da910$@comcast.net> References: <000801cceb8e$a6148db0$f23da910$@comcast.net> Message-ID: The worst part of the firehose of information you get on the internet is figuring out which droplets are right, and which droplets are nonsense. OTOH, did you actually install SLQ Server 2008 R2, or SQL Server Express 2008 R2? Express works fine on my Win 7 Ultimate 32 bit here. And Win7 Ultimate 64 bit on my Macbook Bootcamp :) Doug On Tue, Feb 14, 2012 at 7:05 PM, Dan Waters wrote: > Hi Art, > > I didn't read the article but it is wrong. I'm using W7 Pro with SQL > Server > Express 2008 R2. > > R2 is the latest version - it will work on all the latest OS's. > > From fuller.artful at gmail.com Wed Feb 15 06:57:26 2012 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 15 Feb 2012 07:57:26 -0500 Subject: [dba-SQLServer] SSRS 2008R2 In-Reply-To: References: <000801cceb8e$a6148db0$f23da910$@comcast.net> Message-ID: Thanks for the info, guys. It's about time that I started exploring SSRS. So far all I've done is read about it. -- Arthur Cell: 647.710.1314 I can resist everything except temptation. -- Oscar Wilde From dw-murphy at cox.net Wed Feb 15 10:03:36 2012 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 15 Feb 2012 08:03:36 -0800 Subject: [dba-SQLServer] SSRS 2008R2 In-Reply-To: References: Message-ID: <003301ccebfb$660d7b60$32287220$@cox.net> Saw this yesterday. It may help. http://www.sqlservercentral.com/links/414551/245528. Talks about installing SSRS. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, February 14, 2012 6:52 PM To: Discussion concerning MS SQL Server Subject: [dba-SQLServer] SSRS 2008R2 I have just done the basic R2 installation, but I just read a piece ( http://www.sqlservercentral.com/articles/SQL+Server+2008/74856/ ) that says that the only OSs upon which I can install SSRS SQL 2008 R2 are: *Server operating systems include:* - Windows Server 2003. - Windows Small Business Server 2003. - Windows 2000 Server. *Workstation operating systems include:* - Windows XP Professional. - Windows 2000 Workstation. Is this true? What about Win7 Ultimate? No dice? Seems shocking to say the least. Maybe this article is stale? -- Arthur Cell: 647.710.1314 Prediction is difficult, especially of the future. -- Niels Bohr _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From rls at WeBeDb.com Wed Feb 15 10:25:54 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Wed, 15 Feb 2012 10:25:54 -0600 Subject: [dba-SQLServer] SSRS 2008R2 In-Reply-To: References: Message-ID: <3F7D689A-13C8-4D5D-880D-DAD46813F008@holly.arvixe.com> The article is stale. You might check the date of the article. I run it in Win 7 all the time. Oh, and be glad that you bowed out of that Dallas client for Dot Net. It is a real mess. A friend of mine and I are contemplating if we want to do it or just bow out of it also. It is essentially going to be a total rewrite because of the poor coding that was done by overseas people in India that the guy did NOT know was working on it. At 08:52 PM 2/14/2012, you wrote: >Date: Tue, 14 Feb 2012 21:52:28 -0500 >From: Arthur Fuller >To: Discussion concerning MS SQL Server > >Subject: [dba-SQLServer] SSRS 2008R2 >Message-ID: > >Content-Type: text/plain; charset=ISO-8859-1 > >I have just done the basic R2 installation, but I just read a piece ( >http://www.sqlservercentral.com/articles/SQL+Server+2008/74856/ ) that says >that the only OSs upon which I can install SSRS SQL 2008 R2 are: > >*Server operating systems include:* > > - Windows Server 2003. > - Windows Small Business Server 2003. > - Windows 2000 Server. > >*Workstation operating systems include:* > > - Windows XP Professional. > - Windows 2000 Workstation. > > >Is this true? What about Win7 Ultimate? No dice? Seems shocking to say the >least. Maybe this article is stale? Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com From jwcolby at colbyconsulting.com Sat Feb 25 10:46:34 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 25 Feb 2012 11:46:34 -0500 Subject: [dba-SQLServer] Database backups Message-ID: <4F49106A.90005@colbyconsulting.com> How does an incremental database backup work? I kinda have a picture in my head, only the changed stuff is backed up, to the same file (maybe?) and so forth. Not even sure if that is true. What about restores from? Is the entire thing restored? Only changes from a specific date / time? My client will never have more than my expertise (which is scary) so I need to get a handle on this. ATM they are backing up the entire thing every night using "windows backup", but I doubt that they are testing restores. I have found some scripts that seem to do a good job (though how would I know?) here: http://ola.hallengren.com/downloads.html I have built them up in a _DISMaster database where I keep such things. I actually ran them and got a full backup of every user database (that is what I specified to the SP) in the default backup location in a directory structure that this script builds if necessary. It looks like this thing could be the basis for a backup strategy, but I need to know more about restores specifically. The client is a call center for insurance claims. The entire company is about 50-60 people with about 25 people in the database all day. The data was going into Access MDB backends but we are moving towards SQL Server backends. They work all day adding / modifying data. I would like to be able to do a "point in time" kind of restore in case of disaster. AFAICT that means that I have to do a backup every N minutes / hours or something like that in order to ensure that we can get back to a point in time N minutes / hours ago. Am I close? As I have said many times I am not a SQL Server admin so I need to learn enough about this specific subject to handle this aspect of the business. Any advice or concise focused readings you can point me to would be very much appreciated. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From fhtapia at gmail.com Sat Feb 25 11:02:52 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Sat, 25 Feb 2012 09:02:52 -0800 Subject: [dba-SQLServer] Database backups In-Reply-To: <4F49106A.90005@colbyconsulting.com> References: <4F49106A.90005@colbyconsulting.com> Message-ID: John, This is a topic that I recommend a lot of research on, there is a great article over on simple-talk about database balkups, this article covers 2005, but about the biggest difference between 2005 and 2008 is that the WITH TRUNCATEONLY option has been removed. http://www.simple-talk.com/sql/backup-and-recovery/sql-server-2005-backups/ When in Full recovery mode, you would have 3 different backups depending on the size of your database; so FULL backup, Differential, and Log backup. To recover you recover the full backup, followed by the last differential, and finally every log backup since the last differential -Francisco http://bit.ly/sqlthis | Tsql and More... On Sat, Feb 25, 2012 at 08:46, jwcolby wrote: > How does an incremental database backup work? I kinda have a picture in > my head, only the changed stuff is backed up, to the same file (maybe?) and > so forth. Not even sure if that is true. > > What about restores from? Is the entire thing restored? Only changes > from a specific date / time? > > My client will never have more than my expertise (which is scary) so I > need to get a handle on this. > > ATM they are backing up the entire thing every night using "windows > backup", but I doubt that they are testing restores. I have found some > scripts that seem to do a good job (though how would I know?) here: > > http://ola.hallengren.com/**downloads.html > > I have built them up in a _DISMaster database where I keep such things. I > actually ran them and got a full backup of every user database (that is > what I specified to the SP) in the default backup location in a directory > structure that this script builds if necessary. > > It looks like this thing could be the basis for a backup strategy, but I > need to know more about restores specifically. > > The client is a call center for insurance claims. The entire company is > about 50-60 people with about 25 people in the database all day. > > The data was going into Access MDB backends but we are moving towards SQL > Server backends. They work all day adding / modifying data. I would like > to be able to do a "point in time" kind of restore in case of disaster. > AFAICT that means that I have to do a backup every N minutes / hours or > something like that in order to ensure that we can get back to a point in > time N minutes / hours ago. > > Am I close? As I have said many times I am not a SQL Server admin so I > need to learn enough about this specific subject to handle this aspect of > the business. > > Any advice or concise focused readings you can point me to would be very > much appreciated. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > ______________________________**_________________ > dba-SQLServer mailing list > dba-SQLServer@**databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.**com > > From jwcolby at colbyconsulting.com Sat Feb 25 11:21:22 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 25 Feb 2012 12:21:22 -0500 Subject: [dba-SQLServer] Database backups In-Reply-To: References: <4F49106A.90005@colbyconsulting.com> Message-ID: <4F491892.909@colbyconsulting.com> Thanks Francisco, I'm reading it now. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 2/25/2012 12:02 PM, Francisco Tapia wrote: > John, > This is a topic that I recommend a lot of research on, there is a great > article over on simple-talk about database balkups, this article covers > 2005, but about the biggest difference between 2005 and 2008 is that the > WITH TRUNCATEONLY option has been removed. > > http://www.simple-talk.com/sql/backup-and-recovery/sql-server-2005-backups/ > > > When in Full recovery mode, you would have 3 different backups depending on > the size of your database; so FULL backup, Differential, and Log backup. > > To recover you recover the full backup, followed by the last differential, > and finally every log backup since the last differential > > -Francisco > http://bit.ly/sqlthis | Tsql and More... > > > > > > On Sat, Feb 25, 2012 at 08:46, jwcolby wrote: > >> How does an incremental database backup work? I kinda have a picture in >> my head, only the changed stuff is backed up, to the same file (maybe?) and >> so forth. Not even sure if that is true. >> >> What about restores from? Is the entire thing restored? Only changes >> from a specific date / time? >> >> My client will never have more than my expertise (which is scary) so I >> need to get a handle on this. >> >> ATM they are backing up the entire thing every night using "windows >> backup", but I doubt that they are testing restores. I have found some >> scripts that seem to do a good job (though how would I know?) here: >> >> http://ola.hallengren.com/**downloads.html >> >> I have built them up in a _DISMaster database where I keep such things. I >> actually ran them and got a full backup of every user database (that is >> what I specified to the SP) in the default backup location in a directory >> structure that this script builds if necessary. >> >> It looks like this thing could be the basis for a backup strategy, but I >> need to know more about restores specifically. >> >> The client is a call center for insurance claims. The entire company is >> about 50-60 people with about 25 people in the database all day. >> >> The data was going into Access MDB backends but we are moving towards SQL >> Server backends. They work all day adding / modifying data. I would like >> to be able to do a "point in time" kind of restore in case of disaster. >> AFAICT that means that I have to do a backup every N minutes / hours or >> something like that in order to ensure that we can get back to a point in >> time N minutes / hours ago. >> >> Am I close? As I have said many times I am not a SQL Server admin so I >> need to learn enough about this specific subject to handle this aspect of >> the business. >> >> Any advice or concise focused readings you can point me to would be very >> much appreciated. >> >> -- >> John W. Colby >> Colby Consulting >> >> Reality is what refuses to go away >> when you do not believe in it >> >> ______________________________**_________________ >> dba-SQLServer mailing list >> dba-SQLServer@**databaseadvisors.com >> http://databaseadvisors.com/**mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.**com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From erbachs at gmail.com Sat Feb 25 12:40:40 2012 From: erbachs at gmail.com (Steve Erbach) Date: Sat, 25 Feb 2012 12:40:40 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: Message-ID: Gustav, I finally took the opportunity to look at Northwind.NET. I see that it's a Windows application, not ASP.NET. I was a bit crestfallen since I had hoped to learn something from the way you fellows put reports together. But since you use the Windows-based report viewer, I wonder what, if anything, is available for designing web reports without having to code them "by hand". I'm going to take a more serious look at the VS report designer since I finally found out how much it would cost to license the Crystal Reports runtime on a web host. Sincerely, Steve Erbach Neenah, WI On Fri, Feb 10, 2012 at 1:44 AM, Gustav Brock wrote: > Hi Steve > > Did you peruse our Northwind.NET project? Reports were created with the > native report designer of Visual Studio at zero cost: > > http://northwind.codeplex.com > > Join us and Arthur the newbie at dba-vb. > > /gustav > > > >>> erbachs at gmail.com 10-02-2012 02:14 >>> > Dear Group, > > Does anyone create ASP.NET/SQL Server applications that generate reports > WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm > converting an Access application to an ASP.NET app with SQL Server back > end > and I don't think I'll be able to persuade the client to buy either. > > Have you translated Access reports to the web WITHOUT SSRS or Crystal? > > -- > Regards, > > Steve Erbach > Neenah, WI > > From stuart at lexacorp.com.pg Sat Feb 25 15:58:31 2012 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 26 Feb 2012 07:58:31 +1000 Subject: [dba-SQLServer] Database backups In-Reply-To: <4F49106A.90005@colbyconsulting.com> References: <4F49106A.90005@colbyconsulting.com> Message-ID: <4F495987.12311.7C938D3@stuart.lexacorp.com.pg> On 25 Feb 2012 at 11:46, jwcolby wrote: > How does an incremental database backup work? I kinda have a picture in my head, only the changed > stuff is backed up, Correct, > to the same file (maybe?) and so forth. Not even sure if that is true. Normally to separate files > What about restores from? Is the entire thing restored? Only changes from a specific date / time? > You have to restore the last full backup AND THEN every subsequent incremental backup in order. From stuart at lexacorp.com.pg Sat Feb 25 16:12:40 2012 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 26 Feb 2012 08:12:40 +1000 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: , Message-ID: <4F495CD8.16093.7D62B2D@stuart.lexacorp.com.pg> You might like to look at http://www.hkvstore.com/aspnetreportmaker/ For a a couple of hundred bucks, it might do what you are looking for, and it doesn't need any "runtime on a web host" On 25 Feb 2012 at 12:40, Steve Erbach wrote: > Gustav, > > I finally took the opportunity to look at Northwind.NET. I see that it's a > Windows application, not ASP.NET. I was a bit crestfallen since I had hoped > to learn something from the way you fellows put reports together. But since > you use the Windows-based report viewer, I wonder what, if anything, is > available for designing web reports without having to code them "by hand". > > I'm going to take a more serious look at the VS report designer since I > finally found out how much it would cost to license the Crystal Reports > runtime on a web host. > > Sincerely, > > Steve Erbach > Neenah, WI > From gustav at cactus.dk Sun Feb 26 06:49:13 2012 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 26 Feb 2012 13:49:13 +0100 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal Message-ID: Hi Steve You can do that: ReportViewer Web Server and Windows Forms Controls http://msdn.microsoft.com/en-us/library/ms251771(v=vs.100).aspx If you use SQL Server (including Express version, though with a few limitations), you can even choose to have the reports generated either at the database server or in Local Mode: Using the ASP.NET 2.0 ReportViewer in Local Mode http://www.codeproject.com/Articles/15597/Using-the-ASP-NET-2-0-ReportViewer-in-Local-Mode This is the site that got me on the track - lots of tips here: http://gotreportviewer.com/ /gustav >>> erbachs at gmail.com 25-02-12 19:40 >>> Gustav, I finally took the opportunity to look at Northwind.NET. I see that it's a Windows application, not ASP.NET. I was a bit crestfallen since I had hoped to learn something from the way you fellows put reports together. But since you use the Windows-based report viewer, I wonder what, if anything, is available for designing web reports without having to code them "by hand". I'm going to take a more serious look at the VS report designer since I finally found out how much it would cost to license the Crystal Reports runtime on a web host. Sincerely, Steve Erbach Neenah, WI On Fri, Feb 10, 2012 at 1:44 AM, Gustav Brock wrote: > Hi Steve > > Did you peruse our Northwind.NET project? Reports were created with the > native report designer of Visual Studio at zero cost: > > http://northwind.codeplex.com > > Join us and Arthur the newbie at dba-vb. > > /gustav > > > >>> erbachs at gmail.com 10-02-2012 02:14 >>> > Dear Group, > > Does anyone create ASP.NET/SQL Server applications that generate reports > WITHOUT using SQL Server Reporting Services or Crystal Reports? I'm > converting an Access application to an ASP.NET app with SQL Server back end > and I don't think I'll be able to persuade the client to buy either. > > Have you translated Access reports to the web WITHOUT SSRS or Crystal? > > -- > Regards, > > Steve Erbach > Neenah, WI From erbachs at gmail.com Mon Feb 27 09:55:12 2012 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 27 Feb 2012 09:55:12 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: <4F495CD8.16093.7D62B2D@stuart.lexacorp.com.pg> References: <4F495CD8.16093.7D62B2D@stuart.lexacorp.com.pg> Message-ID: Stuart, Very reasonable price! I'm going to download their eval and take a hard look at it. Thank you! Steve Erbach Neenah, WI On Sat, Feb 25, 2012 at 4:12 PM, Stuart McLachlan wrote: > You might like to look at http://www.hkvstore.com/aspnetreportmaker/ > > For a a couple of hundred bucks, it might do what you are looking for, and > it doesn't need any > "runtime on a web host" > > > > On 25 Feb 2012 at 12:40, Steve Erbach wrote: > > > Gustav, > > > > I finally took the opportunity to look at Northwind.NET. I see that it's > a > > Windows application, not ASP.NET. I was a bit crestfallen since I had > hoped > > to learn something from the way you fellows put reports together. But > since > > you use the Windows-based report viewer, I wonder what, if anything, is > > available for designing web reports without having to code them "by > hand". > > > > I'm going to take a more serious look at the VS report designer since I > > finally found out how much it would cost to license the Crystal Reports > > runtime on a web host. > > > > Sincerely, > > > > Steve Erbach > > Neenah, WI > From erbachs at gmail.com Mon Feb 27 09:57:10 2012 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 27 Feb 2012 09:57:10 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: Message-ID: Gustav, That's very kind of you to send me all of those links. Thank you very much. gotreportviewer.com looks very interesting. Sincerely, Steve Erbach Neenah, WI On Sun, Feb 26, 2012 at 6:49 AM, Gustav Brock wrote: > Hi Steve > > You can do that: > > ReportViewer Web Server and Windows Forms Controls > http://msdn.microsoft.com/en-us/library/ms251771(v=vs.100).aspx > > If you use SQL Server (including Express version, though with a few > limitations), you can even choose to have the reports generated either at > the database server or in Local Mode: > > Using the ASP.NET 2.0 ReportViewer in Local Mode > > http://www.codeproject.com/Articles/15597/Using-the-ASP-NET-2-0-ReportViewer-in-Local-Mode > > This is the site that got me on the track - lots of tips here: > http://gotreportviewer.com/ > > /gustav > > > >>> erbachs at gmail.com 25-02-12 19:40 >>> > Gustav, > > I finally took the opportunity to look at Northwind.NET. I see that it's a > Windows application, not ASP.NET. I was a bit crestfallen since I had > hoped > to learn something from the way you fellows put reports together. But since > you use the Windows-based report viewer, I wonder what, if anything, is > available for designing web reports without having to code them "by hand". > > I'm going to take a more serious look at the VS report designer since I > finally found out how much it would cost to license the Crystal Reports > runtime on a web host. > > Sincerely, > > Steve Erbach > Neenah, WI > > > > From jwcolby at colbyconsulting.com Wed Feb 29 10:07:44 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 29 Feb 2012 11:07:44 -0500 Subject: [dba-SQLServer] Relation integrity constraints Message-ID: <4F4E4D50.5050108@colbyconsulting.com> I have used database diagrams to create relationships between FK / PK pairs in tables such as client / product etc. My understanding is that such relationships create constraints, IOW enforce relational integrity by ensuring that parents cannot be deleted while child records exist and so forth. First of all, is this true? Second, where are these constraints stored? I can see constraints in the table itself, but these seem to be "value" kind of constraints, i.e. Disallow zero length and the like. Where is the "parent / child relationship info stored? Thanks, -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From jwcolby at colbyconsulting.com Wed Feb 29 13:17:40 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 29 Feb 2012 14:17:40 -0500 Subject: [dba-SQLServer] Restoring backups Message-ID: <4F4E79D4.2020003@colbyconsulting.com> Does anyone know of a utility to track backups of a database from the full, each differential and the log file backups and allow you to just point to one of the above backups and restore each piece in order? IOW if I do a full backup Sunday night, a differential every weekday night, and log backups every 1/2 hour, I would like to point to the a log file backup somehow (in a table?) and have the software understand that the backup chain for that log backup starts at the Sunday night full and progresses through each intermediary backup? So I could click a button and restore down through the backup chain. Does such a thing exist? Is such a thing even possible? For the moment I am using the scripts from here: http://ola.hallengren.com/sql-server-backup.html They appear to perform exactly as claimed. I am able to get Full, DIFF and LOG backups easily and quickly. What I am missing is the ability to restore these things easily and quickly. Restoring a full is easy, after that not so easy. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From marklbreen at gmail.com Wed Feb 29 14:32:31 2012 From: marklbreen at gmail.com (Mark Breen) Date: Wed, 29 Feb 2012 20:32:31 +0000 Subject: [dba-SQLServer] Relation integrity constraints In-Reply-To: <4F4E4D50.5050108@colbyconsulting.com> References: <4F4E4D50.5050108@colbyconsulting.com> Message-ID: Hello John, My understanding is 1) Yes, it is true, you can do it when you are designing the tables but I always find it easier to drag and drop on the diagram. 2) You will see the FK relationships when you look at the Keys in the table. If you play with that, you will see that you can actually build the PK / FK at table design stage if you really desired to do so. Is that ok? Mark On 29 February 2012 16:07, jwcolby wrote: > I have used database diagrams to create relationships between FK / PK > pairs in tables such as client / product etc. My understanding is that > such relationships create constraints, IOW enforce relational integrity by > ensuring that parents cannot be deleted while child records exist and so > forth. > > First of all, is this true? > > Second, where are these constraints stored? I can see constraints in the > table itself, but these seem to be "value" kind of constraints, i.e. > Disallow zero length and the like. Where is the "parent / child > relationship info stored? > > Thanks, > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > ______________________________**_________________ > dba-SQLServer mailing list > dba-SQLServer@**databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.**com > > From marklbreen at gmail.com Wed Feb 29 14:35:48 2012 From: marklbreen at gmail.com (Mark Breen) Date: Wed, 29 Feb 2012 20:35:48 +0000 Subject: [dba-SQLServer] Restoring backups In-Reply-To: <4F4E79D4.2020003@colbyconsulting.com> References: <4F4E79D4.2020003@colbyconsulting.com> Message-ID: Hello John, I am interested to see how you get on with this. But with full and diff, do you really need to back up the log also? Would it not be sufficient to back up the main db on Sunday and diffs each half hour? Is that the wrong way to do it? IF the diffs were small, would it be good enough? I have never experimented with restoring log files so I am eager to see how you get on. Mark On 29 February 2012 19:17, jwcolby wrote: > Does anyone know of a utility to track backups of a database from the > full, each differential and the log file backups and allow you to just > point to one of the above backups and restore each piece in order? IOW if > I do a full backup Sunday night, a differential every weekday night, and > log backups every 1/2 hour, I would like to point to the a log file backup > somehow (in a table?) and have the software understand that the backup > chain for that log backup starts at the Sunday night full and progresses > through each intermediary backup? So I could click a button and restore > down through the backup chain. > > Does such a thing exist? Is such a thing even possible? > > For the moment I am using the scripts from here: > > http://ola.hallengren.com/sql-**server-backup.html > > They appear to perform exactly as claimed. I am able to get Full, DIFF > and LOG backups easily and quickly. What I am missing is the ability to > restore these things easily and quickly. Restoring a full is easy, after > that not so easy. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > > ______________________________**_________________ > dba-SQLServer mailing list > dba-SQLServer@**databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.**com > > From accessd at shaw.ca Wed Feb 29 15:54:01 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 29 Feb 2012 13:54:01 -0800 Subject: [dba-SQLServer] Restoring backups In-Reply-To: <4F4E79D4.2020003@colbyconsulting.com> References: <4F4E79D4.2020003@colbyconsulting.com> Message-ID: Hi John: Here is something that was recently posted with compiled(bin) and source versions for download from Codeproject. It has modules for both backup and restore written in Server Management Objects. http://www.codeproject.com/Articles/123441/SQL-Server-2008-Backup-and-Restor e-Databases-using Whether it is a better solution or not I am not sure as I just use an automated drive image product and regular command line copies for data as I have no major databases on site. Thank Shamil for posting the original link. work? Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, February 29, 2012 11:18 AM To: Sqlserver-Dba Subject: [dba-SQLServer] Restoring backups Does anyone know of a utility to track backups of a database from the full, each differential and the log file backups and allow you to just point to one of the above backups and restore each piece in order? IOW if I do a full backup Sunday night, a differential every weekday night, and log backups every 1/2 hour, I would like to point to the a log file backup somehow (in a table?) and have the software understand that the backup chain for that log backup starts at the Sunday night full and progresses through each intermediary backup? So I could click a button and restore down through the backup chain. Does such a thing exist? Is such a thing even possible? For the moment I am using the scripts from here: http://ola.hallengren.com/sql-server-backup.html They appear to perform exactly as claimed. I am able to get Full, DIFF and LOG backups easily and quickly. What I am missing is the ability to restore these things easily and quickly. Restoring a full is easy, after that not so easy. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From rls at WeBeDb.com Wed Feb 29 16:14:46 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Wed, 29 Feb 2012 16:14:46 -0600 Subject: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or Crystal In-Reply-To: References: Message-ID: I would also suggest taking a look at the DevExpress reporting tool. It is very good. It compiles to a dll, so nothing else needed. At 02:33 PM 2/29/2012, you wrote: >Date: Mon, 27 Feb 2012 09:55:12 -0600 >From: Steve Erbach >To: Discussion concerning MS SQL Server > >Subject: Re: [dba-SQLServer] Reporting in ASP.NET WITHOUT SSRS or > Crystal >Message-ID: > >Content-Type: text/plain; charset=ISO-8859-1 > >Stuart, > >Very reasonable price! I'm going to download their eval and take a hard >look at it. Thank you! > >Steve Erbach >Neenah, WI Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com From rls at WeBeDb.com Mon Feb 27 09:27:36 2012 From: rls at WeBeDb.com (Robert Stewart) Date: Mon, 27 Feb 2012 09:27:36 -0600 Subject: [dba-SQLServer] Database backups Message-ID: <4F39A8A4-D7EB-40DE-8476-6360ED0E6AD5@holly.arvixe.com> John, Below is a backup stored procedure that I use on all databases. It will give you a rotating 7 day backup If you need it more often, 4 or 5 time a day, then you can add a time stamp for when it is run at the end of the name of the file. The WITH INIT will overwrite the file each time. Changing the recovery mode to SIMPLE and then back to FULL will allow for the log to be truncated. This part, you may only want to run at the midnight backup, and use one that does not change the recovery model during the day if you are backing up multiple times during the day. CREATE PROCEDURE [dbo].[usp_BackupDatabase_DOW] /* Purpose: to back up the database and automatically truncate the log file Author: Robert L. Stewart Paramaters: None */ AS BEGIN DECLARE @DOW AS TINYINT , @FileName AS VARCHAR( 250 ) , @FileExtension AS VARCHAR( 5 ) , @FilePath AS VARCHAR( 100 ) , @DOW_String VARCHAR( 15 ) SET @DOW = DATEPART( dw , current_timestamp ) /* allows you to set a path other than the local server */ SET @FilePath = 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\' SET @FileExtension = '.bak' IF @DOW = 1 BEGIN SET @DOW_String = 'Sunday' END ELSE BEGIN IF @DOW = 2 BEGIN SET @DOW_String = 'Monday' END ELSE BEGIN IF @DOW = 3 BEGIN SET @DOW_String = 'Tuesday' END ELSE BEGIN IF @DOW = 4 BEGIN SET @DOW_String = 'Wednesday' END ELSE BEGIN IF @DOW = 5 BEGIN SET @DOW_String = 'Thursday' END ELSE BEGIN IF @DOW = 6 BEGIN SET @DOW_String = 'Friday' END ELSE BEGIN IF @DOW = 7 BEGIN SET @DOW_String = 'Saturday' END END END END END END END SET @DOW_String = 'Daily' /* this line may have to be chaged to a select into a variable and then checked*/ IF DATABASEPROPERTYEX( 'USL_DW' , 'Recovery' ) != 'SIMPLE' BEGIN /* set the recovery model to simple*/ ALTER DATABASE USL_DW SET RECOVERY SIMPLE; END SET @FileName = @FilePath + 'USL_DW_' + @DOW_String + @FileExtension BACKUP DATABASE USL_DW TO DISK = @FileName WITH INIT; SET @FileName = @FilePath + 'USL_DW_Log_' + @DOW_String + @FileExtension BACKUP LOG USL_DW_Log TO @FileName WITH INIT BEGIN DBCC SHRINKFILE( USL_DW_Log , 1 ) END ALTER DATABASE USL_DW SET RECOVERY FULL; END >Date: Sat, 25 Feb 2012 11:46:34 -0500 >From: jwcolby >To: Sqlserver-Dba >Subject: [dba-SQLServer] Database backups >Message-ID: <4F49106A.90005 at colbyconsulting.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >How does an incremental database backup work? I kinda have a >picture in my head, only the changed >stuff is backed up, to the same file (maybe?) and so forth. Not >even sure if that is true. > >What about restores from? Is the entire thing restored? Only >changes from a specific date / time? > >My client will never have more than my expertise (which is scary) so >I need to get a handle on this. > >ATM they are backing up the entire thing every night using "windows >backup", but I doubt that they >are testing restores. I have found some scripts that seem to do a >good job (though how would I >know?) here: > >http://ola.hallengren.com/downloads.html > >I have built them up in a _DISMaster database where I keep such >things. I actually ran them and got >a full backup of every user database (that is what I specified to >the SP) in the default backup >location in a directory structure that this script builds if necessary. > >It looks like this thing could be the basis for a backup strategy, >but I need to know more about >restores specifically. > >The client is a call center for insurance claims. The entire >company is about 50-60 people with >about 25 people in the database all day. > >The data was going into Access MDB backends but we are moving >towards SQL Server backends. They >work all day adding / modifying data. I would like to be able to do >a "point in time" kind of >restore in case of disaster. AFAICT that means that I have to do a >backup every N minutes / hours >or something like that in order to ensure that we can get back to a >point in time N minutes / hours ago. > >Am I close? As I have said many times I am not a SQL Server admin >so I need to learn enough about >this specific subject to handle this aspect of the business. > >Any advice or concise focused readings you can point me to would be >very much appreciated. > >-- >John W. Colby >Colby Consulting Robert L. Stewart www.WeBeDb.com www.DBGUIDesign.com www.RLStewartPhotography.com