The SQL Server system function suser_sname() will return the username of the login used to connect to the SQL Server. Wouldn’t it be easier to have Access provide the NT Username of the person who opened the access file?
You would need to change the owner on the source system before you backup the database. You can’t make any changes to the database when it is in stand by /readonly mode.
You might find that you get a better response if you post the full error message that you are getting. Have you made sure that the MSSQLSERVER and MSSQL$SQLEXPRESS services are running on your computer?
Select into is much much faster in terms of performance as it can run in minimally logged mode. For this, you need to have the database in Bulk-Logged recovery. When you use Bulk-Logged recovery, and when you execute a Select into command, it is considered a bulk operation. But you would lose the option of [...]
Please use the search feature here on ITKE. This question has been asked before, and hopefully you will find a solution in previous answers. If you don’t find the solution, please use the discussion section below to provide more details and tell us what you have tried so far, and what the results were. Thanks,
No, you should pretty much never change the recovery model of the database once you have it set to the model that you want to use. Changing it to run DBCC CHECKDB and to rebuild the indexes shouldn’t really do anything. DBCC CHECKDB doesn’t write anything to the log, unless you are running it in [...]
Pretty much every T/SQL statement can be used within an explicit transaction. I can’t think of any off the top of my head that can’t be used within a transaction, as every command that you run is executed within its own implicit transaction.
Yes you can do this. You can install a second instance of SSRS (SSRS supports named instances) on the servers. You will probably want to point this at a new ReportServer database so that it’s totally separate. You’ll need to assign the SSRS servers another IP so that the sites don’t conflict with each other, [...]
Seems like it would look something like this. fetch next If FldA <> holdFldA // break on field change holdFldA = FldA Write TotLin Eval TotCnt = *zero endif Eval TotCnt += 1 … Phil Sorry the editor is having more fun with me <> above should be the symbols for not equal to Phil
Try enabling the use of 32 bit applications in the application pools (IIS Manager).
I’m not clear on what you are asking, but I’ll do my best here. If you are trying to convert the SQL Server Transaction Log into a text file, you don’t. There are a couple of applications you can use to view the data in the log file. If you have a text file you [...]
That would be the MCTS: SQL Server 2005. Once you have that certification you can look into either (or both) of the MCITP: SQL Server 2005 Database Administration or MCITP: SQL Server 2005 Database Development. The MCTS: SQL Server 2005 certification is a requirement before getting the MCITP certifications.
Yes that would break the log chain. It shouldn’t break replication, as all the transactions which need to be replicated should be marked in the transaction log as such, and they shouldn’t be able to be removed from the log without being replicated, but I can see it causing problems. What errors is it causing [...]
Here is an example: <a href=”http://support.microsoft.com/kb/308510″>How to update a SQL Server database by using the SqlDataAdapter object in Visual C++ .NET</a> ——————–
According to <a href=”http://msdn.microsoft.com/en-us/library/cc645993.aspx”>this Microsoft document</a>, with the express editions you get only the Import and Export Wizard, and the basic Integration Services features required by the wizard. Al other SSIS features are not included, so you would need standard or enterprise edition.
<b><i>One way</i></b> to do it could be using a condition like this: WHERE (ItemString = @item OR ItemString LIKE @item + ‘,%’ OR ItemString LIKE ‘%,’ + @item + ‘,%’ OR ItemString LIKE ‘%,’ + @item)
When inserting from a query, you don’t have to use the VALUES clause. Your statement should look like this: <pre>insert into TEMPLE_BDMS.TEMP_QSP select rownum as uniqrownum, doc_id, doc_type, barcode2, barcode3, barcode4, routing_status, scan_date, assignee, scanner, scan_station, pfile_name, new_doc_id, new_doc_type, new_doc_type2 from TEMPLE_BDMS.QSP_SOURCE where pfile_name not like ‘%_0001.%’ ;</pre>
I’m assuming that the data type of the UF_4 field is varchar or similar. You will probably need something like this: <pre>UPDATE Activity SET uf_4 = cast(cast(uf_4 AS DECIMAL) AS INT);</pre> ——————————
PRINT statements do use network traffic, but unless you have a lot of PRINT statements they won’t effect anything.
Have a look at the following pages: 1. For Visual C++ 2. For .NET MSDN is not really that helpful, it has all the function definitions but no proper example. You can try the link below for a simple example that will get you started. Connecting To SQL Server Using C++ ODBC Example





