<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with MSSQL</title>
      <link>http://ask.metafilter.com/tags/MSSQL</link>
      <description>Questions tagged with 'MSSQL' at Ask MetaFilter.</description>
	  <pubDate>Tue, 20 Oct 2009 09:07:43 -0800</pubDate> <lastBuildDate>Tue, 20 Oct 2009 09:07:43 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>MS SQL please speed up so i dont cry</title>
	<link>http://ask.metafilter.com/135937/MS%2DSQL%2Dplease%2Dspeed%2Dup%2Dso%2Di%2Ddont%2Dcry</link>	
	<description>MS SQL Pros, I need your help!  What&apos;s causing MS SQL 2005 to import records so slowly?  It&apos;s a persistent problem across all databases that just developed yesterday.  Details inside... So my 3rd party app that I use to import records into MS SQL 2005 Standard has gone from approximately 10K records per hour to 500 records per hour.  I&apos;ve tried creating new databases to test on, and they all give me the same result.&lt;br&gt;
&lt;br&gt;
I&apos;m no MS SQL expert, but I did a bit of googling and created a trace file.  It looks like the delay (according to the Start and End Time in the trace record) is between an &quot;IF @@TRANCOUNT &amp;gt; 0 COMMIT TRAN&quot; and &quot;SELECT ID FROM tlbFolders WHERE NAME=&quot;C:\PATHTODATA\&quot;.  The delay between these 2 events is about 10 seconds, and I can&apos;t tell why it&apos;s acting so slow.&lt;br&gt;
&lt;br&gt;
I&apos;ll follow up in the thread, let me know if you need more info or know of any additional resources that can help me answer this question, or any good troubleshooting tips.  Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135937</guid>
	<pubDate>Tue, 20 Oct 2009 09:07:43 -0800</pubDate>
	<category>MSSQL</category>
	<category>SQL</category>
	<dc:creator>antonymous</dc:creator>
	</item>
	<item>
	<title>Building Oracle support into a Microsoft-only product</title>
	<link>http://ask.metafilter.com/123968/Building%2DOracle%2Dsupport%2Dinto%2Da%2DMicrosoftonly%2Dproduct</link>	
	<description>Currently Microsoft-only, but wanting to change our software soon to support Oracle as well. What are we getting ourselves into? My company develops a web-based human resources management system and software suite written in .NET which uses a MS SQL backend. We have been a &quot;Microsoft shop&quot; for at least ten years, with all of our products being written in a Microsoft language using Microsoft tools on a Microsoft database. &lt;br&gt;
&lt;br&gt;
We recently got a fairly sizable RFP from a company who is extremely interested in our software. The RFP describes our software almost perfectly and they really want to go with us &#8212; however, their one stipulation is that our software needs to support Oracle as a backend.&lt;br&gt;
&lt;br&gt;
The dollar amount of the contract has the upper level management willing to do whatever it takes to secure this contract, but I&apos;m worried that we&apos;re biting off a lot more than we can chew. No one in the whole company has any Oracle experience except for one developer who has said that it&apos;s a bad idea. We also have a very tight development schedule for the next year. Also, this is the first RFP we&apos;ve gotten in many years which requires Oracle as a backend, so I don&apos;t think this change will help us earn more business in the future.&lt;br&gt;
&lt;br&gt;
Knowing what you do about the differences between MS SQL and Oracle, how reasonable would it be for a small software company to build Oracle support into their flagship product, given limited development resources and almost no Oracle knowledge?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.123968</guid>
	<pubDate>Fri, 05 Jun 2009 09:37:55 -0800</pubDate>
	<category>microsoft</category>
	<category>mssql</category>
	<category>oracle</category>
	<category>software</category>
	<dc:creator>relucent</dc:creator>
	</item>
	<item>
	<title>Upsize Access database?</title>
	<link>http://ask.metafilter.com/116363/Upsize%2DAccess%2Ddatabase</link>	
	<description>I have been asked to make a proposal to upsize an Access database to allow for a few more concurrent users (currently 10) and ideally improve the overall performance of the system. Am I getting in over my head? To give an idea as to the size of the project the current system has 35 tables, and on the order of 1000 queries and 1500 macros defined. Not even the original developer (the client) knows which ones are actually in use. There are on the order of 200,000 records in the current live system. The client is not willing to spend the money to have the system completely re-built (which I would estimate at being at 3-6 months&#8217; work) but they would like some input as to how the current system could be improved, and they are probably willing to spend enough to cover two to three weeks of my time.&lt;br&gt;
&lt;br&gt;
I have done some tests, successfully upsizing the tables to MySQL, but even a single insert from one of the simpler entry forms fails. I figure that with my basic knowledge of SQL that I could probably get a lot of it working (if not very efficiently), but would MS SQL be a better bet for compatibility and performance issues? I have a fair amount of experience with Access, having built customer management and billing systems from scratch, but am no SQL/RDBMS guru. I could use this work, but am I doomed to fail?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.116363</guid>
	<pubDate>Tue, 10 Mar 2009 13:39:02 -0800</pubDate>
	<category>Access</category>
	<category>database</category>
	<category>MSSQL</category>
	<category>MySQL</category>
	<category>RDMBS</category>
	<category>SQL</category>
	<category>upsize</category>
	<dc:creator>cbrody</dc:creator>
	</item>
	<item>
	<title>How can I import a 46GB database into MSSQL without ending up with a 46GB transaction log?</title>
	<link>http://ask.metafilter.com/92709/How%2Dcan%2DI%2Dimport%2Da%2D46GB%2Ddatabase%2Dinto%2DMSSQL%2Dwithout%2Dending%2Dup%2Dwith%2Da%2D46GB%2Dtransaction%2Dlog</link>	
	<description>I need to import a database into MS SQL but I do not want to end up with a transaction log as large as the database. What&apos;s the best way to do the import? We&apos;re working with a software vendor to migrate their database into MS SQL. They set up an ODBC connection to their database and then use Enterprise Manager Data Transformation Services (DTS) packages to copy the tables into an MS SQL database.&lt;br&gt;
&lt;br&gt;
However, at the end of their test pass we had a 46GB database file and a 46GB transaction log.&lt;br&gt;
&lt;br&gt;
What&apos;s the best way to do this without creating such a giant log?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92709</guid>
	<pubDate>Thu, 29 May 2008 12:13:57 -0800</pubDate>
	<category>database</category>
	<category>databases</category>
	<category>dba</category>
	<category>import</category>
	<category>logging</category>
	<category>mssql</category>
	<category>relational</category>
	<category>sql</category>
	<category>transaction</category>
	<category>transactions</category>
	<dc:creator>odinsdream</dc:creator>
	</item>
	<item>
	<title>LAMP to WISA</title>
	<link>http://ask.metafilter.com/91763/LAMP%2Dto%2DWISA</link>	
	<description>After working in a mostly LAMP (Linux, Apache, MySQL, PHP) environment the last few years, I need to make a quick switch to WISA (Windows, IIS, MS SQL, ASP). I have very little experience with WISA. Give me some tips to make a smooth transition. What is different and what is the same?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91763</guid>
	<pubDate>Sun, 18 May 2008 18:18:53 -0800</pubDate>
	<category>apache</category>
	<category>asp</category>
	<category>iis</category>
	<category>lamp</category>
	<category>mssql</category>
	<category>mysql</category>
	<category>php</category>
	<category>wisa</category>
	<dc:creator>gringoese</dc:creator>
	</item>
	<item>
	<title>It keeps growing and growing and growing...</title>
	<link>http://ask.metafilter.com/87283/It%2Dkeeps%2Dgrowing%2Dand%2Dgrowing%2Dand%2Dgrowing</link>	
	<description>Help me understand MSSQL logs...  At least enough to do what I need to do. Ok, I know the logs are there for disaster recovery and such.  I understand the concept of Point-in-Time restore.  But what I don&apos;t get is why the logs don&apos;t get truncated when a backup of the DB is done.  One would think that you would get a fresh new log started after a backup, but yet my log keeps growing and growing and growing.&lt;br&gt;
&lt;br&gt;
Anyway, I&apos;m sure there are reasons for it, but what I need is to be able to do backups where the log gets reduced in size when the backup is done, since I will no longer need the past logged data after that point.&lt;br&gt;
&lt;br&gt;
For reference: I&apos;m doing &apos;Full&apos; recovery model, and a &apos;Full&apos; (Backup Type) backup is done once daily, at night.  I want to keep the logs for Point in Time restores for crashes that happen during the day.  I don&apos;t need a log for what happened in prior days.  The code used is like as follows:&lt;br&gt;
&lt;br&gt;
BACKUP DATABASE [my_db] &lt;br&gt;
TO DISK = @sBackupName&lt;br&gt;
WITH INIT, NOUNLOAD, NAME = N&apos;backup label&apos;, NOSKIP, STATS=10, NOFORMAT&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Yes, I&apos;m a SQL n00b.&lt;br&gt;
&lt;br&gt;
Thanks for any help/info on this.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.87283</guid>
	<pubDate>Fri, 28 Mar 2008 09:42:35 -0800</pubDate>
	<category>logs</category>
	<category>mssql</category>
	<category>sql</category>
	<dc:creator>eas98</dc:creator>
	</item>
	<item>
	<title>But I don&apos;t want to learn .NET!</title>
	<link>http://ask.metafilter.com/86682/But%2DI%2Ddont%2Dwant%2Dto%2Dlearn%2DNET</link>	
	<description>How can I connect to a SQL Server 2005 database using windows authentication with PHP?  I&apos;m working on a small PHP/MSSQL application at work, but I can only connect to the database server using windows authentication and I can&apos;t figure out how to make that happen.  Is it even possible?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.86682</guid>
	<pubDate>Thu, 20 Mar 2008 16:01:23 -0800</pubDate>
	<category>database</category>
	<category>mssql</category>
	<category>php</category>
	<dc:creator>logic vs love</dc:creator>
	</item>
	<item>
	<title>Authentication across Windows, Linux, and Mac</title>
	<link>http://ask.metafilter.com/80734/Authentication%2Dacross%2DWindows%2DLinux%2Dand%2DMac</link>	
	<description>How do you use a single authentication system for different kind of servers, systems, and workstations? We&apos;re a small Web development business of less than 20 employees. Currently, we have three local servers:&lt;br&gt;
&lt;br&gt;
Server A, using Windows Server 2003, is the &quot;main&quot; server for putting all of our document (including financial data) and most of our projects. For development and testing, we also host Web sites there which require a Windows server, ASP and MS SQL. It&apos;s also our main DHCP and DNS server.&lt;br&gt;
&lt;br&gt;
Server B, Fedora Core 6, is mainly for hosting projects requiring Linux, PHP or ColdFusion, and MySQL. It&apos;s the backup DHCP and DNS server.&lt;br&gt;
&lt;br&gt;
Server C, Windows Sever 2003 Web Edition, is for hosting projects requiring ColdFusion and Windows.&lt;br&gt;
&lt;br&gt;
We have various kinds of workstations at the office: Windows XP, Windows Vista, Ubuntu, Fedora, and Mac OS X 10.4.&lt;br&gt;
&lt;br&gt;
Our biggest annoyance at the moment is authentication. Every employee has a different account for everything. Windows file shares, Linux file shares, Linux shell accounts, MySQL, MS SQL...&lt;br&gt;
&lt;br&gt;
Server A already has Active Directory set up, though I&apos;m not too familiar with it. (I&apos;m more of a Linux system administrator.) I tried some ways to combine all one employee&apos;s accounts together, but it just won&apos;t work. One of the ways I tried was to set up PAM on server B to use LDAP or other mechanisms supposedly supported by the server A, but it doesn&apos;t work.&lt;br&gt;
&lt;br&gt;
Now, I&apos;m wondering, are there any methods to make the authentication process of every service work together?&lt;br&gt;
&lt;br&gt;
I&apos;m not even sure where to start to set this all up. Any suggestions will be appreciated! Thanks in advance!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.80734</guid>
	<pubDate>Fri, 11 Jan 2008 06:22:57 -0800</pubDate>
	<category>authentication</category>
	<category>linux</category>
	<category>mac</category>
	<category>mssql</category>
	<category>mysql</category>
	<category>server</category>
	<category>windows</category>
	<category>workstation</category>
	<dc:creator>remi</dc:creator>
	</item>
	<item>
	<title>Right Place, Wrong Time</title>
	<link>http://ask.metafilter.com/76197/Right%2DPlace%2DWrong%2DTime</link>	
	<description>I have a set of dates/times in a MS SQL table that lack a timezone offset. I want to convert them to UTC, but I have to be mindful of Daylight Time for each of these dates (they&apos;re in the future). How can I convert them to UTC correctly? The nuts and bolts are these:&lt;br&gt;
We have a calendaring application with an MS SQL Server 2000 backend. When event dates get entered into the system, they&apos;re entered without a timezone code, e.g.:&lt;br&gt;
&lt;br&gt;
2007-11-13 12:00:00.000&lt;br&gt;
&lt;br&gt;
Each of these events is in the future. Some are in March or April. We observe DST.&lt;br&gt;
&lt;br&gt;
I&apos;m making changes to the data feed so that we can implement the hCalendar microformat on our calendars. The problem is the time zone. hCalendar calls for dates like:&lt;br&gt;
&lt;br&gt;
2007-11-13T12:00:00-08:00&lt;br&gt;
&lt;br&gt;
Originally, one of the engineers slapped the current time offset from UTC on there. Unfortunately, if you&apos;re looking at the calendar while we&apos;re on standard time, an event that will be in DST will not be offset correctly, being an hour earlier or later.&lt;br&gt;
&lt;br&gt;
So, back to the drawing board. We decided to convert all the dates to UTC before putting them in the data feed for the microformat. But the time zone problem came right back.&lt;br&gt;
&lt;br&gt;
Is there an easy way to convert these future dates to the correct UTC that&apos;s mindful of what the DST offset is in the future? There&apos;s no function in MS SQL 2000 that allows you to look up whether a date is PDT or PST, is there?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.76197</guid>
	<pubDate>Tue, 13 Nov 2007 18:37:07 -0800</pubDate>
	<category>date</category>
	<category>hcalendar</category>
	<category>microformats</category>
	<category>mssql</category>
	<category>sql</category>
	<category>sqlserver</category>
	<category>time</category>
	<category>utc</category>
	<dc:creator>dw</dc:creator>
	</item>
	<item>
	<title>Where&apos;s Enterprise Manager?</title>
	<link>http://ask.metafilter.com/68338/Wheres%2DEnterprise%2DManager</link>	
	<description>I have Visual Studio 2005 Professional. I installed VS2k5Pro with all of the options except the sample databases on my WinXP box, but now I can&apos;t figure out how to access the Enterprise Manager - replacement ... Enterprise Management Studio, or even find out if that app is included with the version I have. Any suggestions?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.68338</guid>
	<pubDate>Wed, 01 Aug 2007 15:27:31 -0800</pubDate>
	<category>EnterpriseManager</category>
	<category>MSSQL</category>
	<category>SQLServer</category>
	<dc:creator>SpecialK</dc:creator>
	</item>
	<item>
	<title>Mapping drive to MSSQL table</title>
	<link>http://ask.metafilter.com/56013/Mapping%2Ddrive%2Dto%2DMSSQL%2Dtable</link>	
	<description>Is there a way of mapping a Virtual Drive letter or a share to an MSSQL database? In windows, Is it possible to create a mapped drive or a shared folder, where the files are actually held in an MSSQL (or equivalant) database? i.e. If I save a file called &quot;new file.txt&quot; on Z:\, it actually saves the file as a new row in an SQL table.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.56013</guid>
	<pubDate>Tue, 30 Jan 2007 07:08:31 -0800</pubDate>
	<category>mappeddrive</category>
	<category>mssql</category>
	<dc:creator>seanyboy</dc:creator>
	</item>
	<item>
	<title>Host-Filter</title>
	<link>http://ask.metafilter.com/49609/HostFilter</link>	
	<description>Looking for a dedicated server hosting provider We&#8217;re about to launch an online application &#8211; built in Flash to run research experiments.&lt;br&gt;
&lt;br&gt;
The parameters that are most important are: &lt;br&gt;
&lt;br&gt;
- Low latency (we&#8217;ll be running experiments in all parts of the World including China), &lt;br&gt;
- High spec box (probably looking at 200 concurrent users hitting an app with a lot of optimised animations and rich media, regularly writing to a database),&lt;br&gt;
- Budget &#8211; preferably less than $800USD per month.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;*It has to be a Windows Server running &amp;gt;IIS5 with MS SQL database (and have SQL server enterprise manager)&lt;br&gt;
Any other suggestions appreciated (except technology choice &#8211; it&#8217;s too late and complicated to get into those types of fundamentals).&lt;/small&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.49609</guid>
	<pubDate>Fri, 27 Oct 2006 19:08:48 -0800</pubDate>
	<category>backbone</category>
	<category>dedicated</category>
	<category>hosting</category>
	<category>latency</category>
	<category>MSSQL</category>
	<category>tier1</category>
	<category>webhosting</category>
	<category>Windows</category>
	<dc:creator>strawberryviagra</dc:creator>
	</item>
	<item>
	<title>A query connundrum.</title>
	<link>http://ask.metafilter.com/45807/A%2Dquery%2Dconnundrum</link>	
	<description>&lt;b&gt;Attention SQL gurus&lt;/b&gt;.  This has me completely stumped.  How can I find the index (position) of a row in a table without querying the entire set? Here is the situation:&lt;br&gt;
&lt;br&gt;
I have a web application that has some ajaxified tables on many of the pages.  These tables show various slices of data.  Most of the tables are about 10 rows per page, so for example, if the table was a list of all Customers, and you&apos;ve got 10,000 customers, that would be 1,000 &lt;i&gt;pages&lt;/i&gt; of customers.&lt;br&gt;
&lt;br&gt;
To initially show the table, I have to do two queries: one is the initial 10 rows that are to be displayed, the other is a count(*) to get the total amount of rows.&lt;br&gt;
&lt;br&gt;
Here is the problem:&lt;br&gt;
&lt;br&gt;
I have a &lt;i&gt;particular&lt;/i&gt; customer ID in my hand.  I&apos;d like the webtable to take this ID and jump to the correct page that will show that customer.  Naturally, it has to take into account sorting.&lt;br&gt;
&lt;br&gt;
Hypothetical simplified example:&lt;br&gt;
&lt;code&gt;ID    NAME&lt;br&gt;
1102  C_D&apos;s Tavern&lt;br&gt;
1294  Bob&apos;s Discount Dairy&lt;br&gt;
1299  Chico&apos;s House of Wicker&lt;br&gt;
...&lt;br&gt;
9309  Larry&apos;s Llama Emporium&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
If I sort by ID (natural order), the index of Bob&apos;s Discount Dairy would be 2, Chico&apos;s Hosue of Wicker would be 3, etc.  If I&apos;m displaying &quot;page 1&quot;, that means the first 10 indexes, so I know those two would be on the first page.  &quot;OK, so what page is ID# 5129 on?&quot; That&apos;s the problem.&lt;br&gt;
&lt;br&gt;
What I want to know is if there&apos;s a way to figure out the index of a particular ID without having to query the entire dataset.  Or if I &lt;b&gt;do&lt;/b&gt; have to query the entire dataset, I&apos;d like it to be as painless as possible.  Another important note: some of these queries are being run off of VIEWs, which could complicate things.&lt;br&gt;
&lt;br&gt;
This is on Microsoft SQL Server 2000.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.45807</guid>
	<pubDate>Sun, 03 Sep 2006 05:51:38 -0800</pubDate>
	<category>index</category>
	<category>microsoft</category>
	<category>mssql</category>
	<category>offset</category>
	<category>page</category>
	<category>row</category>
	<category>sql</category>
	<dc:creator>Civil_Disobedient</dc:creator>
	</item>
	
	</channel>
</rss>

