Python

Technical Article

RE: Clearing Transaction Log

  • Reply

The following is a brute-force method and should not be every day's practise. Can you detach the db? If so, detach it, rename or delete the log, attach the db. Make sure, you have a recent backup of the db first!Generally, if you don't backup the log, you cannot shrink it. Depending on your recovery […]

You rated this post out of 5. Change rating

2005-03-18

Technical Article

RE: Using an ACCESS application against sql server

  • Reply

Hi,I pretty new to SQL myself but I found a code snippet  (maybe on this site) that helped alot and will solve your problem.Sub RemoveDBO()     Dim tbl As TableDef     For Each tbl In CurrentDb.TableDefs         If Len(tbl.Connect) > 0 Then             tbl.Name = Replace(tbl.Name, "dbo_", "")         End If     Next     Set […]

You rated this post out of 5. Change rating

2005-03-18

Technical Article

RE: Re: Problem in inserting a row

  • Reply

Supply a column list, for all columns excluding the identity column. Supply the matching column list in the Select. This is a best practice anyway, and is something you should always be doing.INSERT INTO  tblFinal_inspection (Column1, Column2 ... ColumnN)  SELECT Column1, Column2 ... ColumnN FROM tblFinal_inspection Where lotnum = @lotnum; In the above, replace "Column1, Column2 […]

2005-03-17

Technical Article

RE: Getting the ID of an INSERTed record

  • Reply

Age old problem, How do I get the ID for the thing I just wrote. @@Identity immediately after the insert works but you do need a return trip from the database. If the Database is not going to be Mammoth I suggest using a GUID you can create that on your client then just send […]

2005-03-11

Technical Article

RE: Replication & filtering

  • Reply

You can configure transactional replication not to replicate delete actions.When you add the article to the publication, specify 'none' in the delete command stored procedure. @del_cmd  = 'NONE 'parameter if you are using sp_AddArticle stored procedure, or from EM in the properties of the publication, in the articles tab and then in the commands tab.

2005-03-11

Technical Article

RE: Maint plan won''''t delete .trn logs as scheduled

  • Reply

I created and viewed the .sql file.  The instruction to delete the logs is in there.  What I have discovered though was that the job has been reported as having failed.  This would account for the fact that the files were not deleted.What is puzzling though is that the SQL log itself indicates the log files […]

2005-03-09

Technical Article

RE: nvarchar formatting?

  • Reply

You might want to check out this page to verify that you are actually using Unicode http://mysecretbase.com/ColdFusion_and_Unicode.cfmAlso, storing a resume in a nvarchar column might be a tight fit. You can try ntext for more space.You also might want to research collations in the SQL Server manual. It may provide you with some key insight.Good luck. 

2005-03-03

Technical Article

RE: Top N across groupings

  • Reply

Here's the solutions that I finally arrived at...Select State, Company, Revenue FROM myTable A WHERE Revenue IN ( Select TOP 2 Revenue From myTable B WHERE B.State = A.State Order by Revenue DESC ) Order by State, Revenue DESC Thanks for the helpBrian

2005-03-01

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers