Here's a quick little query for getting a look at your linked servers in SQL Server 2008
SELECT * FROM SYS.LINKED_LOGINS L JOIN SYS.SERVERS S ON S.SERVER_ID = L.SERVER_ID ORDER BY S.PRODUCT, S.PROVIDER, S.DATA_SOURCE
SELECT * FROM SYS.LINKED_LOGINS L JOIN SYS.SERVERS S ON S.SERVER_ID = L.SERVER_ID ORDER BY S.PRODUCT, S.PROVIDER, S.DATA_SOURCE
#load SMO into your Powershell session
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
#instantiate the server object against the instance of your choice
$sqlServer = new-object ("Microsoft.SqlServer.Management.Smo.Server") "(local)"
#see what the object can do
$sqlServer | get-member
#get a list of linked server entries on the server
$sqlServer.LinkedServers | format-table
SQLCMD -E -S myserver\myinstance -Q "BULK INSERT myDatabase.dbo.myTable FROM 'C:\rdbms_local_path\myFile.csv' WITH(FIELDTERMINATOR=',', ROWTERMINATOR='\n')"
cmd.exe /c dir
cmd.exe /c dir \\myserver\myshare\*.csv | where {$_[0] -ne ' '}
12/09/2012 02:06 PM 879,703 SOMEFILE.csv
07/08/2013 09:16 AM 61,293 SOMEOTHERFILE.csv
"filename_" + RIGHT("0" + (DT_STR, 2, 1252) (DATEPART("mm", GETDATE())), 2) + RIGHT("0" + (DT_STR, 2, 1252) (DATEPART("dd", GETDATE())), 2) + (DT_STR, 4, 1252) (DATEPART("yyyy", GETDATE())) + ".txt"
"filename_" + Replace(Substring((DT_WSTR, 50) GetDate(), 1, 10), "-", "") + ".txt"
Create 1 slice covering the entire disk: # fdisk -I /dev/devN Create 1 partition covering the entire slice: # bsdlabel -w devNs1 Create a filesystem on the "a" partition (soft-updates enabled): # newfs -U /dev/devNs1a
# fdisk -I /dev/da0 # bsdlabel -w da0s1 # newfs -U /dev/da0s1a