Sounds like your database is in SIMPLE recovery mode. Databases in SIMPLE recovery mode can not have there transaction log backed up, as the transaction log is truncated each time the database flushes the log changes to disk. In order to backup the transaction log for this database you will need to change the database [...]
I used real world experience working with SQL Server 2005/2008 to pass the exams. When I took the exams there were no study guides available. Shortly there will be some new books coming out which I wrote part off. They will be published by Syngress Press.
I’m not sure if I understand correctly your question. If you want to assign some specific value to a varibale or parameter in PL/SQL when it is null, you could use the NVL function, this way: <pre>l_variable := nvl(l_variable,’-');</pre> If this is not what you meant, please provide more information and examples if possible.
This could be a permissions problem in vista. Make sure you have write access to the location where you want to create the spool file.
There isn’t really an easy way to script out the views automatically. Unless you are changing them all that often you shouldn’t need to back them up all that often. Also your ISP should be backing up the database for you so that it can be restored from tape in case of a problem. If [...]
Which text function are you using to perform this lookup? Some of them will not perform as you would expect. If you can post some sample code to the comments section below that would be very helpful.
You are trying to restore a database to SQL Server Express which is to large to attach to a SQL Express database. SQL Server Express edition has a size limit of 4 Gigs. You are trying to restore a database which is larger than this. You will need to shrink the database then back it [...]
Without more information about the schema of BigTable I’m not going to be able to give you a good answer. If the values in the columns on BigTable will all exist for all the rows then it is probably an OK design. If the rows which have parents in TableA have different columns filled out [...]
Doing this requires the use of a function. Something like this. <pre>CREATE FUNCTION YourFunction (@UserId varchar(10)) RETURNS VARCHAR(4000) BEGIN DECLARE @Return VARCHAR(4000) SET @Return = ” DECLARE @error_code VARCHAR(10) DECLARE cur CURSOR FOR SELECT Error_code FROM YourTable WHERE UserId = @UserId OPEN cur FETCH NEXT FROM cur INTO @error_code WHILE @@FETCH_STATUS = 0 BEGIN SET [...]
How about a UNION of two queries, one from sales,transactions (shipments) and the other from purchases,transactions (receivings) ?
Try removing the quotes from this line: <pre>@message = ‘@Body’</pre> i.e. <pre>@message = @Body</pre>
This is not clear enough, at least for me. I’m not sure whether you want to get records like ‘cleaning’ or not. If you want to get only records containing the word ‘lean’, then you should use something similar to this: <pre>SELECT name FROM table WHERE name like ‘lean %’ or name like ‘% lean’ [...]
Is SQL Server already installed? What is in the connection string when you are trying to connect? this is my connect function to connect with database, I think there is problem with this coding. Please can you help. Public Sub connect() sconn = “Data Source=SUJAL;Initial Catalog=staff;User ID=sa;Password=longtail” scon = New SqlClient.SqlConnection(sconn) scond = New SqlClient.SqlCommand [...]
Hello, SQL Server is the engine for databases, which live on an Operating System, which interfaces the Server’s hardware. Each of these components (SQL, OS, Hardware) are highly configurable, but this flexibility can lead to incorrect, or inappropriate choices. Imagine you have a car with a fast engine and aerodynamic body, but doesn’t have any [...]
try to check it in task manager then processes and see if it consumes more memory
The only way to truly optimize performance is to monitor (using perfmon/profiler) and test. You need someone with the expertise to do this, or someone who can learn the rudimentary tools and give it a shot. But, I would recommend either hiring a consultant (I can give some recommendations) or maybe using Microsoft’s “health checkup” [...]
Yes, you can simply add another job step to use the DBCC SHRINKFILE statement. However it is typically recommended that you not shrink the files on a regular basis. Doing so causes the database engine and disk subsystem to do extra work that it doesn’t need to do. If the log has grown to that [...]
If you have a primary key in your table that is messed up that corresponds to a value in the other table then yes you can. You may want to look a Lumigents Log Explorer and simply roll back the incorrect statement (will only work if your database is in full recovery mode).
Please provide more details. What exactly do you mean by dump (Select *)? What do you want the text for? Thanks!
With the node removed the system won’t have any performance impact it will only impact the high availability of the system. I would recommend replacing the node as soon as you can.





