Fascinating problem… This can be solved by applying some simple rules and a recursive stored procedure. First, I would decide to apply a rule that says we will apply the payments to the oldest invoices first. That means that to solve this, I would retrieve the account records for all open invoices into an internal [...]
<a href=”https://www.microsoft.com/exchange/2010/en/us/archiving-and-retention.aspx”>Here is a helpful site that answers your questions</a>. I found it to be very informative as I had the same questions and more.
Not sure why you want to try to use that fragment as a starting point. Assuming that “ancnumber” is “ancestry number” and 720 is the code for filipino, the following will give the answer: select count(*) as TotalPopulation, tmp.Filipinos, cast ((100.0 * tmp.Filipinos / count(*)) as decimal(5.2)) as PercentFilipinos from popdata, ( select count(*) as [...]
You’ll need to have the hosting company attach the database to the SQL Server instance then have them give you the connection string with the server name, username, password and database name.
By using the CREATE LOGIN statement. <pre>CREATE LOGIN [YourDomainWindowsLogin] FROM WINDOWS GO CREATE LOGIN SQLLogin WITH PASSWORD=’YourPassword’ GO</pre> You can also create logins within the SQL Server management studio. Connect to the database in the Object Explorer. Open the server > Security > Logins and create logins as needed.
Look at the WorkGroup edition of SQL Server. Its a little bit cheaper and it doesn’t have the database size limit. You can upgrade from SQL 2005 Express to SQL 2008 Workgroup (or higher) directly. You don’t need to upgrade from SQL 2005 Express to SQL 2005 standard first. If you want you can upgrade [...]
Those error’s aren’t SQL Server error messages. You might want to give Microsoft Support a call and have them help figure out what’s going on with the system. Something may not be configured correctly.
When you open the SQL Server Management Studio (SQL Server 2005+) or Enterprise Manager (SQL 2000 and older) you can use the import/export wizard to import data. Right click on the database you want to import the data into and select all tasks, then select the import data option. The wizard will allow you to [...]
SQL Server doesn’t have incremental backups. We have Differential backups instead. A differential backup is all the changes since the last full backup. Use the BACKUP DATABASE command just like you would to do a full backup but add in the DIFFERENTIAL flag. <pre>BACKUP DATABASE YourDatabase TO DISK=’D:PathToYourFile.bak’ WITH DIFFERENTIAL</pre> This can be done with [...]
This all depends on what was done within the change script. It a lot of data was backed up that could explain it. Does your QA database have the same amount of data as your production database? You should really contact your software vendor and ask them. Anyone here will just be guessing where they [...]
There are no problems running one SQL 2005 instance and one SQL 2008 instance. They will be separate instances with one as he default instance and one as a named instance.
Microsoft SQL Server is a multi-user database which is designed to be a robust scalable database platform. You can start with the Express Edition which has a 4 Gig limit on the amount of data it will hold. Once you grow beyond that you can quickly and easily upgrade to a larger version which doesn’t [...]
Restore the full backup, then restore the most recent differential backup. Then restore the logs taken from after the differential backup until current. So basically sunday’s full, then Yesterday’s differential, then the log backups taken aften 1pm yesterday.
Other than the standard ALT-PRNTSCRN or CTRL-PRNTSCRN to capture windows, I like to use the free <a href=”http://www.gadwin.com/printscreen/”>Gadwin Printscreen utility</a>. Been very useful for several years for me now – even works on Win7.
Are you doing row by row updates? What does the execution plan for the update statement look like? SQL Server is more efficient when doing larger bulk operations. Instead try dumping the data into a staging table, then updating all the rows (or larger batches of rows say 1000 or 5000 at a time) from [...]
As you didn’t include the tables, I’ll just give you a basic syntax. <pre>SELECT t1.*, t3.*, t2.col1 FROM t1 JOIN t2 ON t1.col1 = t2.col4 JOIN t3 ON t2.col2 = t3.col1 WHERE t1.Col5 = ‘test’</pre>
You could create a formula a bit like this… ‘Find the position of the decimal in your mileage field Local NumberVar DecimalPlace := InStr(Mileage,”.”); ‘Get the decimal remeinder of mileage local NumberVar DecimalValue := Left(DISTANCEFIELD,DecimalPlace); ‘Work out if in the 1st, 2nd 3rd etc. 8th of a mile, using 0.125 as 1/8th if DecimalValue = [...]
You can set up nightly backups using the SQL Maintenance plan, then backup that flat file with whatever backup software you use for your other servers. There is backup software available that will back up live databases as well, but that would take research and planning to find the one you would like to use [...]
There is no rollback for a SQL Service pack. You’ll need to uninstall the SQL Server engine, then reinstall and patch up to the level you wish to be patched to.
SQL Server doesn’t track the number of changes to the database is a counter you can grab. The best way to figure this out is to work with the application developer and see how many database calls there are, and how many of those are read and how many of those are writes. Then work [...]





