<?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 SQLServer</title>
      <link>http://ask.metafilter.com/tags/SQLServer</link>
      <description>Questions tagged with 'SQLServer' at Ask MetaFilter.</description>
	  <pubDate>Wed, 07 Oct 2009 12:24:41 -0800</pubDate> <lastBuildDate>Wed, 07 Oct 2009 12:24:41 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Finding rows that don&apos;t exist in an SQL Server 2005 table</title>
	<link>http://ask.metafilter.com/134873/Finding%2Drows%2Dthat%2Ddont%2Dexist%2Din%2Dan%2DSQL%2DServer%2D2005%2Dtable</link>	
	<description>I can&apos;t seem to build a query in SQL Server 2005 that returns rows that are &lt;em&gt;not&lt;/em&gt; in a table. I have a table called &lt;code&gt;sch&lt;/code&gt; that includes student IDs and the periods for which the students are scheduled:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;period&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Table &lt;code&gt;att&lt;/code&gt; includes student IDs and the dates and periods they attended:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;period&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-01&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-01&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-01&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-01&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-01&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-02&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-02&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-02&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-02&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-03&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-03&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-03&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-03&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
In this example, the attendance for student 111, period 4, is missing for 2009-10-02 and 2009-10-03. How can I build a query to get that result? Ideally, the query would return:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;period&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-02&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;br&gt;
111&amp;nbsp;&amp;nbsp;&amp;nbsp;2009-10-03&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
I&apos;ve tried a &lt;code&gt;left join&lt;/code&gt; on the tables between the IDs and periods but it&apos;s not getting me what I need. Any help is appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.134873</guid>
	<pubDate>Wed, 07 Oct 2009 12:24:41 -0800</pubDate>
	<category>sql</category>
	<category>sqlserver</category>
	<dc:creator>DakotaPaul</dc:creator>
	</item>
	<item>
	<title>How does WITH work in MS SQL Server?</title>
	<link>http://ask.metafilter.com/132620/How%2Ddoes%2DWITH%2Dwork%2Din%2DMS%2DSQL%2DServer</link>	
	<description>Can someone help me understand how the &lt;code&gt;WITH&lt;/code&gt; common table expression works in Microsoft SQL Server? I&apos;d like to learn more about how the &lt;code&gt;WITH&lt;/code&gt; common table expression works in Microsoft SQL Server. I saw an example in the &lt;a href=&quot;http://oreilly.com/catalog/9780596009762/&quot;&gt;SQL Cookbook&lt;/a&gt;, but don&apos;t quite understand it. Can one of you SQL gurus break it down a bit for me?&lt;br&gt;
&lt;br&gt;
Here&apos;s the data in the &lt;code&gt;emp&lt;/code&gt; table:&lt;blockquote&gt;&lt;code&gt;&lt;br&gt;
deptno&amp;nbsp;&amp;nbsp;ename&lt;br&gt;
------&amp;nbsp;&amp;nbsp;--------&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;CLARK&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;KING&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;MILLER&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;20&amp;nbsp;&amp;nbsp;FORD&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;20&amp;nbsp;&amp;nbsp;ADAMS&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;30&amp;nbsp;&amp;nbsp;MARTIN&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;30&amp;nbsp;&amp;nbsp;BLAKE&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;30&amp;nbsp;&amp;nbsp;ALLEN&lt;br&gt;
&lt;/code&gt;&lt;/blockquote&gt;The &lt;code&gt;WITH&lt;/code&gt; common table expression:&lt;blockquote&gt;&lt;code&gt;&lt;br&gt;
with x (deptno, cnt, names, empno, len) as &lt;br&gt;
(&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;select deptno, count(*) over (partition by deptno),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cast(ename as varchar(100)),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;empno, 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;from emp&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;union all&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;select x.deptno, x.cnt,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cast(x.names + &apos;,&apos; + e.ename as varchar(100)),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.empno, x.len+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;from emp e, x&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;where e.deptno = x.deptno and e.empno &amp;gt; x.empno&lt;br&gt;
)&lt;br&gt;
select deptno, names&lt;br&gt;
from x&lt;br&gt;
where len = cnt&lt;br&gt;
order by 1&lt;br&gt;
&lt;/code&gt;&lt;/blockquote&gt;The results:&lt;blockquote&gt;&lt;code&gt;&lt;br&gt;
deptno&amp;nbsp;&amp;nbsp;names&lt;br&gt;
------&amp;nbsp;&amp;nbsp;----------------------&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;CLARK,&amp;nbsp;KING,&amp;nbsp;MILLER&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;20&amp;nbsp;&amp;nbsp;FORD,&amp;nbsp;ADAMS&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;30&amp;nbsp;&amp;nbsp;MARTIN,&amp;nbsp;BLAKE,&amp;nbsp;ALLEN&lt;br&gt;
&lt;/code&gt;&lt;/blockquote&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.132620</guid>
	<pubDate>Fri, 11 Sep 2009 15:05:43 -0800</pubDate>
	<category>sql</category>
	<category>sqlserver</category>
	<dc:creator>DakotaPaul</dc:creator>
	</item>
	<item>
	<title>What is the best way to host an ASP.NET website?</title>
	<link>http://ask.metafilter.com/122021/What%2Dis%2Dthe%2Dbest%2Dway%2Dto%2Dhost%2Dan%2DASPNET%2Dwebsite</link>	
	<description>What is the best way to host an ASP.NET website? I&apos;m the Sysadmin for a small non-profit and am beginning the process of a website redesign/redevelopment. I figure this is a good time to also take a look at how the site is hosted.  &lt;br&gt;
&lt;br&gt;
Our website uses DotNetNuke running under Windows 2003/SQL Server/ASP.NET.  Right now we rent out 1U of rack space from a local company @ $150/month plus $4/GB of data transfer.  We usually end up using 15GB per month.  &lt;br&gt;
&lt;br&gt;
I&apos;d appreciate some advice on the following options:&lt;br&gt;
&lt;br&gt;
1. Keep renting rack space&lt;br&gt;
2. Host the site locally on a dedicated server&lt;br&gt;
3. Host the site locally on a virtual server&lt;br&gt;
4. Host the site remotely on a virtual private server&lt;br&gt;
&lt;br&gt;
Right now I&apos;m leaning towards a remote VPS due to cost savings, increased reliability and ease of upgrading.&lt;br&gt;
&lt;br&gt;
If you do end up recommending a remote VPS do you have any recommendations on good providers?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.122021</guid>
	<pubDate>Wed, 13 May 2009 13:55:46 -0800</pubDate>
	<category>aspnet</category>
	<category>dedicated</category>
	<category>dotnetnuke</category>
	<category>hosting</category>
	<category>sqlserver</category>
	<category>vps</category>
	<category>windows</category>
	<dc:creator>talkingmuffin</dc:creator>
	</item>
	<item>
	<title>Can SQL Server and IIS live happily ever after?</title>
	<link>http://ask.metafilter.com/117015/Can%2DSQL%2DServer%2Dand%2DIIS%2Dlive%2Dhappily%2Dever%2Dafter</link>	
	<description>Hosting SQL Server and IIS on the same co-located server:  Good idea, bad idea, or terrible idea? I&apos;m looking to reduce the discrete points of failure on my co-lo&apos;d servers.  I&apos;ve got one machine running SQL Server 2005 (with replication) and a separate machine IIS 6.0, both on Windows Server 2003.  Our client software talks to both to SQL Server and IIS via ports that are open to the internet, but the two servers do not currently have any need to communicate with one another.  We chose to go with this setup primarily as a security measure to prevent exploits for either of SQL Server or IIS from granting someone trivial access to the other, and to date this has worked pretty well.  &lt;br&gt;
&lt;br&gt;
If we were to host both SQL Server and IIS on the same box, what can we do to maximize our security given that both must be accessible from the internet?  Are there any best practices associated with this, or is it just roundly rejected as a bad idea?&lt;br&gt;
&lt;br&gt;
I&apos;ll do my best to fill in any details I&apos;ve left out -- I&apos;m not the IT guy, but I&apos;ve hopefully enough working knowledge of the configuration to provide more context.  Thank you!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.117015</guid>
	<pubDate>Tue, 17 Mar 2009 18:29:00 -0800</pubDate>
	<category>colocation</category>
	<category>exploit</category>
	<category>iis</category>
	<category>openports</category>
	<category>pointoffailure</category>
	<category>security</category>
	<category>server</category>
	<category>sqlserver</category>
	<dc:creator>JohnFredra</dc:creator>
	</item>
	<item>
	<title>Hello end user!  Just FYI, the admin password to this database is: xyz</title>
	<link>http://ask.metafilter.com/114346/Hello%2Dend%2Duser%2DJust%2DFYI%2Dthe%2Dadmin%2Dpassword%2Dto%2Dthis%2Ddatabase%2Dis%2Dxyz</link>	
	<description>What might cause a SQLOLEDB connection string (containing an admin username/password) to briefly appear on-screen in a browser session and would I be crazy to buy a product that&apos;s had this bug for who knows how long without realizing it? I&apos;m evaluating an expensive, best-of-breed piece of software (seriously, you&apos;d be shocked! shocked! to hear who it is) with a major web-based component...when end users log in, there&apos;s a brief flicker on-screen wherein the full database connection string is visible, in all its MSSQL-authentication-password-in-clear-text (with db_owner privileges) glory.&lt;br&gt;
&lt;br&gt;
Apparently this has gone unnoticed for quite some time and the company has reproduced the issue (they see the brief flickering of text), but can&apos;t figure out what&apos;s causing it, and is trying to enlist my help in resolving it by WebExing into my machine (even though they can reproduce it from their environment).  &lt;br&gt;
&lt;br&gt;
Their current challenge is that they can&apos;t press the printscreen key at the right moment to actually capture the text and verify that the problem is in fact real, which took me all of one minute to figure out (I guess you need the rhythm of an improvisational keyboard player or somethin&apos;).&lt;br&gt;
&lt;br&gt;
The web component is mostly built in ASP Classic, mostly VB, though I&apos;m seeing some JScript here and there.  I&apos;d rather not dig through all of their code myself, which is not my responsibility, but I thought this would be a good question for the Hive Mind to chew on -- what could cause this, and should I be doing business with this company?  &lt;br&gt;
&lt;br&gt;
I&apos;m also put off by using a db_owner account for simple end user activity, and the lack of Windows authentication (from a SQL standpoint -- the app does support Windows authentication for logging in), though it seems &lt;i&gt;way-too-many&lt;/i&gt; off-the-shelf-products tend to do this, and in our pursuit for software built on best practices, we are constantly disappointed and our options are always so narrow.&lt;br&gt;
&lt;br&gt;
I&apos;m pretty familiar with ASP but not so much with JScript.  I could see how a developer would Response.Write a connection string for debugging purposes, but can&apos;t imagine how this would go unnoticed for so long in a major commercial application.&lt;br&gt;
&lt;br&gt;
Can you think of any other trigger that would cause the connection string to appear, other than the developer specifically saying &quot;print the damn thing on-screen?&quot;  &lt;br&gt;
&lt;br&gt;
More specifically, what appears on-screen is:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
$DOMAIN\Username$ [populated with real information, of course]&lt;br&gt;
SQLOLEDB Connection String&lt;br&gt;
C:\Program Files\Path\To\Application\Server\Folder&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Sure looks like debug code, eh?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.114346</guid>
	<pubDate>Mon, 16 Feb 2009 11:34:34 -0800</pubDate>
	<category>ado</category>
	<category>asp</category>
	<category>microsoft</category>
	<category>resolved</category>
	<category>sqlserver</category>
	<category>webbased</category>
	<dc:creator>aydeejones</dc:creator>
	</item>
	<item>
	<title>Translating &apos;s/ */ /g&apos;  into T-SQL?</title>
	<link>http://ask.metafilter.com/97942/Translating%2Ds%2Dg%2Dinto%2DTSQL</link>	
	<description>Fixing whitespace:  Can someone translate &apos;s/ */ /g&apos;  into T-SQL? Within a field I need to contract any number of spaces above one to one.  LTRIM and RTRIM aren&apos;t any use, and while I can (and, indeed, have) bodged up a bunch of nested REPLACE(field, &apos;  &apos;, &apos; &apos;) (that should be two spaces then one - but will be squished because MeFi knows how to do this!)  together, I&apos;m hoping there&apos;s a better way, which will deal with any number of spaces, without me filling the query with a bajillion nested REPLACE functions.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97942</guid>
	<pubDate>Wed, 30 Jul 2008 19:06:56 -0800</pubDate>
	<category>SQL</category>
	<category>SQLServer</category>
	<category>T-SQL</category>
	<category>whitespace</category>
	<dc:creator>pompomtom</dc:creator>
	</item>
	<item>
	<title>More SQL help, please</title>
	<link>http://ask.metafilter.com/96655/More%2DSQL%2Dhelp%2Dplease</link>	
	<description>Another SQL question (*sigh*), but this time a bit more complicated. There is a column in my database called &apos;Contact&apos;. It is currently null for about 140k of the 148K entries. There are two other columns called &apos;Lastname&apos; and &apos;Firstname&apos; in my database, which are either populated with data or one or the other or both are null.&lt;br&gt;
&lt;br&gt;
I want all entries in the column &apos;Contact&apos; that are null to be a combination of the &apos;Firstname&apos; and &apos;Lastname&apos; columns by taking the value in &apos;Firstname&apos; appending a space then appending the value in &apos;Lastname&apos; to it, and sticking that into the &apos;Contact&apos; column. Because some entries may have only a first name, only a last name or neither, I still want to stick with that logic, since I want the information in the Contact column, even if it&apos;s just copying a space back into it.&lt;br&gt;
&lt;br&gt;
How can I go about doing this? I&apos;m running SQL Server 2005 and have the management studio, FWIW. &lt;br&gt;
&lt;br&gt;
BTW, I can do a select statement that gets the 140k entries in which the contact value is null, but I want to make sure that I overwrite those values only, not the other 8k or so entries whose contact values are not null.&lt;br&gt;
&lt;br&gt;
Thanks to all in advance!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.96655</guid>
	<pubDate>Tue, 15 Jul 2008 12:25:56 -0800</pubDate>
	<category>dataimport</category>
	<category>sql</category>
	<category>sqlserver</category>
	<category>sqlserver2005</category>
	<dc:creator>omnipotentq</dc:creator>
	</item>
	<item>
	<title>Synchronize databases....3...2...1... NOW!</title>
	<link>http://ask.metafilter.com/87850/Synchronize%2Ddatabases321%2DNOW</link>	
	<description>What&apos;s the best way to keep data one way synchronized between an internal Mircosoft SQL Server database and a web facing mySQL database? So we have an internal system that&apos;s based on SQL Server. I&apos;ve created numerous DTS packages for moving SQL Server data from the inside SQL Server to a SQL Server at our ISP with some complex transformations, but what I really need to do now is move data from our internal SQL Server to a mySQL database.&lt;br&gt;
&lt;br&gt;
Here are some requirements and complications.&lt;br&gt;
&lt;br&gt;
1. The internal SQL Server system doesn&apos;t have any obvious way to see what&apos;s changed in a days work.&lt;br&gt;
&lt;br&gt;
2. The mySQL server should know when a row was last modified!&lt;br&gt;
&lt;br&gt;
3. We can have as many supplemental tables on either database, but no changes can be made to the exisiting SQL Server tables.&lt;br&gt;
&lt;br&gt;
4. Assume SQL Server 2000 and the mySQL version is rather up to date, but completely flexible on the mySQL side.&lt;br&gt;
&lt;br&gt;
Are any of those database synchronization tools out there decent? The internal database is mission critical, so it&apos;s vital that it not be fouled up.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.87850</guid>
	<pubDate>Thu, 03 Apr 2008 18:50:53 -0800</pubDate>
	<category>data</category>
	<category>databases</category>
	<category>dataexport</category>
	<category>export</category>
	<category>mysql</category>
	<category>sql</category>
	<category>sqlserver</category>
	<category>synchronize</category>
	<dc:creator>advicepig</dc:creator>
	</item>
	<item>
	<title>How do I set up a SQL Server 2000 DSN connection when moving servers?</title>
	<link>http://ask.metafilter.com/86237/How%2Ddo%2DI%2Dset%2Dup%2Da%2DSQL%2DServer%2D2000%2DDSN%2Dconnection%2Dwhen%2Dmoving%2Dservers</link>	
	<description>IANA IT professional, but I need to move our SQL Server database from one server to another server. I can&apos;t get the DSN connections to work now that we&apos;re on the new server; can you please hold my hand? Our office is upgrading to a new server this weekend. Both servers are Windows Small Business Server 2003 (using SQL Server 2000).&lt;br&gt;
&lt;br&gt;
We had one database on the old server called OURGREATDB. I detached it in Enterprise Manager, copied it onto a thumb drive, placed it in the folder that our IT consultant set up for SQL Server on the new machine, and attached it there. It looked like it worked just fine; I can browse tables, etc, in EM no problem. Now the new server is all set up on our LAN and our users have joined its domain, etc. The old server is disconnected and out of the picture.&lt;br&gt;
&lt;br&gt;
Users on the LAN connect to the database using an Access 2003 front end and a DSN connection (I know, I know, we should switch to something better--I can worry about that on Monday once this is all working). I tried changing the DSN connection on a user&apos;s computer and it won&apos;t authenticate (&apos;Login failed for user BOB&apos;). This is using SQL Server authentication with the new server name, along with the same ID and password that worked on the old server. I can see user BOB in EM on the server just fine.&lt;br&gt;
&lt;br&gt;
So I guess my question is, how do I manage the IDs and Passwords on the new SQL Server to make them work the way they did before switching machines?&lt;br&gt;
&lt;br&gt;
I did change a setting in EM on the new server to allow both windows &amp;amp; sql server authentication (then stopped and started) but I don&apos;t really understand how any of this works so I&apos;m not sure where (if anywhere) the password needs to be reentered on the new server.&lt;br&gt;
&lt;br&gt;
If anyone can make sense of what I&apos;m asking I&apos;ll be eternally grateful. Small words and short sentences, please--I&apos;m a hack at this and our IT consultant has no SQL Server experience at all. Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.86237</guid>
	<pubDate>Sat, 15 Mar 2008 12:49:59 -0800</pubDate>
	<category>sbs2003</category>
	<category>sqlserver</category>
	<category>systemadministration</category>
	<category>windows</category>
	<dc:creator>bcwinters</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>I need to  get part of a website onto a USB sick at will</title>
	<link>http://ask.metafilter.com/74564/I%2Dneed%2Dto%2Dget%2Dpart%2Dof%2Da%2Dwebsite%2Donto%2Da%2DUSB%2Dsick%2Dat%2Dwill</link>	
	<description>I need to  get part of a website onto a USB sick at will I have a client for my web development biz that has a website in ASP (classic) and SQL Server Express.  The old version of the site had some method where certain customers of this client, who had been given a USB stick by my client, could hit a certain page on the site and it would prompt them for a download location, and they could choose the USB stick and then it would download a certian part of the website to the stick as a self contained little site that they could run on their computer from the stick.&lt;br&gt;
&lt;br&gt;
I understand being able to open a webpage from a USB stick and browse the &quot;local&quot; site that is on the stick, no problem.  But my question is how to make static, local, browseable pages out of a dynamic SQL server based site?  &lt;br&gt;
&lt;br&gt;
The site has a lot of products by a lot of manufacturers, and the pages that are downloaded are for a specific manufacturer.  So its pulling a subset of info from the db and building out those pages and saving them as static ones.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.74564</guid>
	<pubDate>Wed, 24 Oct 2007 11:15:21 -0800</pubDate>
	<category>asp</category>
	<category>sqlserver</category>
	<category>usb</category>
	<category>website</category>
	<dc:creator>Chuck Cheeze</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>How to determine if a record has a certain value at any given time. </title>
	<link>http://ask.metafilter.com/43694/How%2Dto%2Ddetermine%2Dif%2Da%2Drecord%2Dhas%2Da%2Dcertain%2Dvalue%2Dat%2Dany%2Dgiven%2Dtime</link>	
	<description>I need some SQL Server/database design help.  I have a custom built admin for an ecommerce site where we manage our orders.  During the life of an order, it can have many statuses ... For example: In Process, Transmitted, Confirmed, Backordered, Shipped, Closed. &lt;br&gt;
&lt;br&gt;
In my database I keep track of status changes in a table called Tracking.  It&apos;s basically a log of status changes an order goes through and when.  A sample data set for Order # 12111 might be something like:&lt;br&gt;
&lt;br&gt;
Tracking&lt;br&gt;
-------------&lt;br&gt;
uid	orderID		statusID	dateChanged&lt;br&gt;
1	12111		5		7/1/2006&lt;br&gt;
22	12111		21		7/1/2006&lt;br&gt;
43	12111		7		7/3/2006&lt;br&gt;
54	12111		8		7/5/2006&lt;br&gt;
102	12111		7		7/8/2006&lt;br&gt;
155	12111		15		7/15/2006&lt;br&gt;
&lt;br&gt;
uid is the unique identifier for the record.  StatusID is just a numeric unique identifier for the statusnames.  The statusIDs don&apos;t progress sequentially in any way, meaning a statusID of 15 doesn&apos;t mean the order is further along in the process than a statusID of 7.  DateChanged is the date the order was changed to that status.&lt;br&gt;
&lt;br&gt;
Our accounting department wants to be able to do some kind of query to find out which orders were in a certain status on any given date or within a date range.  For example, they might want to find all orders on Backorder (statusID=8) on 7/7/2006.  What is the best way to do that?&lt;br&gt;
&lt;br&gt;
Order 12111 would be one of those orders returned in the result set as it&apos;s status changed to backorder on 7/5/2006 and it didn&apos;t move to another status until 7/8/2006.  How can I query for these records?&lt;br&gt;
&lt;br&gt;
I&apos;m hoping it can be done easily, but let&apos;s say it can&apos;t.  What changes can I make to my Tracking table to be able to perform queries like that easily?  Do I need to start keeping track of what the previous status is in each record?  Something like:&lt;br&gt;
&lt;br&gt;
Tracking&lt;br&gt;
-------------&lt;br&gt;
orderID		oldstatusID	statusID	dateChanged&lt;br&gt;
12111		1		5		7/1/2006&lt;br&gt;
&lt;br&gt;
I really, really don&apos;t want to change the Tracking table because I know it would be a nightmare trying to back populate fields, etc. BUT if I have to, I will.&lt;br&gt;
&lt;br&gt;
Help, please!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.43694</guid>
	<pubDate>Fri, 04 Aug 2006 13:13:46 -0800</pubDate>
	<category>database</category>
	<category>design</category>
	<category>sqlserver</category>
	<dc:creator>SoulOnIce</dc:creator>
	</item>
	<item>
	<title>isql and bcp</title>
	<link>http://ask.metafilter.com/43673/isql%2Dand%2Dbcp</link>	
	<description>MS SQL Server Filter:  I&apos;m supporting a pretty old process that loads data into and out of SQL Server 6.5.  The process uses isql and bcp from a SQL Server 2000 installation.  Is there anywhere I can download these utilities for free, perhaps as part of a &quot;SQL Server Client&quot; tool?  I have searched the M$ website...</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.43673</guid>
	<pubDate>Fri, 04 Aug 2006 09:41:06 -0800</pubDate>
	<category>bcp</category>
	<category>isql</category>
	<category>Microsoft</category>
	<category>SQLServer</category>
	<dc:creator>joecacti</dc:creator>
	</item>
	<item>
	<title>&quot;There&apos;s no place like home....&quot;</title>
	<link>http://ask.metafilter.com/41036/Theres%2Dno%2Dplace%2Dlike%2Dhome</link>	
	<description>Need a tinker-free Linux/MySql install for Ruby On Rails.  Also, seeking advice for getting started in RoR. Ok, I&apos;ll start this out by saying that I have little-to-no interest in operating systems.  I&apos;ve run Windows for the past decade or so because (for me, anyway) it&apos;s a no-effort solution that requires the least tinkering possible.  &lt;br&gt;
&lt;br&gt;
HOWEVER, I&apos;ve recently been teaching myself Ruby On Rails, and it seems that RoR is most comfortable in a Unix/MySql environment.  So here are the questions -&lt;br&gt;
&lt;br&gt;
1) Am I correct in the assumption that the standard RoR setup is Unix/MySql?  Is this what RoR is most comfortable with?  Has anyone successfully run RoR on WinXP/SqlServer?&lt;br&gt;
2) What Linux installation requires the least tinkering to get it to work properly?  &lt;br&gt;
3) Which Linux installation has the best community support? &lt;br&gt;
4) Is there a way to install linux as a dual-boot on my WinXP system without reformatting, repartitioning, and reinstalling everything?  Bonus points for solutions that involve only free tools.&lt;br&gt;
5) What are some good MySql resources?  Specifically, I&apos;m looking for guides to dealing with installation and administration.  Also, what are the best MySql community sites?&lt;br&gt;
6) What resources would you suggest for someone starting out in RoR?  I&apos;m currently reading &lt;i&gt;Why&apos;s (poignant) Guide to Ruby&lt;/i&gt; as well as &lt;i&gt;Agile Web Development In Rails.&lt;/i&gt;  Are there any other books or guides that you would suggest?  Are there any places where I can get some good sample code to play around with?  What are some good community sites?  (I should mention that I&apos;m an experienced programmer, so I&apos;m specifically looking for help with Ruby, not programming in general)&lt;br&gt;
&lt;br&gt;
Sorry for the ton and a half of questions.  If you could answer *any* of the above, your help will be greatly appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.41036</guid>
	<pubDate>Tue, 27 Jun 2006 10:55:07 -0800</pubDate>
	<category>database</category>
	<category>databases</category>
	<category>linux</category>
	<category>mysql</category>
	<category>operatingsystem</category>
	<category>operatingsystems</category>
	<category>programming</category>
	<category>rails</category>
	<category>ruby</category>
	<category>rubyonrails</category>
	<category>software</category>
	<category>sqlserver</category>
	<category>unix</category>
	<category>windows</category>
	<dc:creator>Afroblanco</dc:creator>
	</item>
	<item>
	<title>I don&apos;t want to be a country song.</title>
	<link>http://ask.metafilter.com/35098/I%2Ddont%2Dwant%2Dto%2Dbe%2Da%2Dcountry%2Dsong</link>	
	<description>&lt;a href=&quot;http://www.cliving.org/lifestresstestscore.htm&quot;&gt;Topping 400&lt;/a&gt; and my dog is 14 1/2 years old... but it&apos;s not really about that. Stress from the past two years figures heavily when it comes to work issues and how I handle them. I stayed home with my child for a long time and have been back at work for three years. I work at an institution that very recently migrated from a circa 1996 frame-relay supported environment to new *everything*. &lt;br&gt;
&lt;br&gt;
My most previous position was something that more fully funded institutions prefer a master&apos;s degree to do. I was very happy sitting behind my desk doing meticulous work that was somewhat independent. Everything I needed to look up was at my fingertips. I made the mistake (?) of learning the position quickly so my boss (and she told she supervisors this in a meeting) pushed me into a newly minted tech position because the institution can&apos;t afford a qualified tech person. I resent being pushed from something I loved doing. I loved it so much I didn&apos;t much mind not getting a raise with that position, but I feel my skills are being taken advantage of and more responsibility is being added on regularly. Never mind that you&apos;d be shocked at how little I&apos;m paid.&lt;br&gt;
&lt;br&gt;
I enjoy the web part of my job and training others to use the new software. I enjoy that I&apos;m *supposed* to be able to find time to do some of my old position&apos;s duties as a backup (which -ahem- is still desperately needed six months in) -that and Saturdays off are intended to be my perks since I didn&apos;t receive the raise I twice requested... funding, budget cuts, etc. This position also makes me visible as someone the director relies on, which makes at least two other employees want to give me *hell* on a regular basis. I blew up at one of them the other day and have yet to see what fallout will come from it, but am prepared. &lt;br&gt;
&lt;br&gt;
Anyway, with the new system comes in expensive, in-depth training, which includes primarily SQL server and Crystal Reports elements. In order to determine if I can hang in another year, finally here is my question: This training is somewhat geared toward the field I&apos;m in and the specific software we use. Without a degree to back it up, how beneficial would this training be in terms of finding another position?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.35098</guid>
	<pubDate>Sun, 26 Mar 2006 08:37:38 -0800</pubDate>
	<category>CrystalReports</category>
	<category>resumebuilding</category>
	<category>SQLserver</category>
	<category>workstress</category>
	<dc:creator>auntbunny</dc:creator>
	</item>
	<item>
	<title>How can I export data from SQL Server 2000 to QuarkXPress using ColdFusion?</title>
	<link>http://ask.metafilter.com/5147/How%2Dcan%2DI%2Dexport%2Ddata%2Dfrom%2DSQL%2DServer%2D2000%2Dto%2DQuarkXPress%2Dusing%2DColdFusion</link>	
	<description>What&apos;s the best way to export data from a SQL Server 2000 database into QuarkXPress 4.11 using ColdFusion 5? &lt;small&gt;[more inside]&lt;/small&gt; I&apos;m considering either the &lt;a href=&quot;http://www.emsoftware.com/products/xdata&quot;&gt;XData&lt;/a&gt; and &lt;a href=&quot;http://www.emsoftware.com/products/xcatalog&quot;&gt;XCatalog&lt;/a&gt; XTensions from Em Software, tagging the data with XPress tags, or XML (which I don&apos;t have much experience with).</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.5147</guid>
	<pubDate>Thu, 05 Feb 2004 11:59:30 -0800</pubDate>
	<category>coldfusion</category>
	<category>databases</category>
	<category>dbms</category>
	<category>exportingdata</category>
	<category>quarkxpress</category>
	<category>sqlserver</category>
	<dc:creator>kirkaracha</dc:creator>
	</item>
	
	</channel>
</rss>

